unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Tobias Geerinckx-Rice via "Bug reports for GUILE, GNU's Ubiquitous Extension Language" <bug-guile@gnu.org>
To: 53201@debbugs.gnu.org
Subject: bug#53201: string->uri-reference rejects domain names with final ‘.’
Date: Wed, 12 Jan 2022 03:56:17 +0100	[thread overview]
Message-ID: <877db5ldok.fsf@nckx> (raw)

[-- Attachment #1: Type: text/plain, Size: 584 bytes --]

Guilers,

What the subject says :-)  Omitting the final dot is optional (and 
common), not mandatory.

  scheme@(guile-user)> (string->uri-reference "http://x.org")
  $1 = #<<uri> … host: "x.org" …>

  scheme@(guile-user)> (string->uri-reference "http://x.org.")
  $2 = #f ; wrong!

This actually breaks redirects in the wild:

Starting download […]
From 
https://pyropus.ca/software/getmail/old-versions/getmail-5.16.tar.gz...
Bad uri-reference header component:
https://pyropus.ca./software/getmail/old-versions/getmail-5.16.tar.gz

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

             reply	other threads:[~2022-01-12  2:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-12  2:56 Tobias Geerinckx-Rice via Bug reports for GUILE, GNU's Ubiquitous Extension Language [this message]
2022-01-27  0:40 ` bug#53201: string->uri-reference rejects domain names with final ‘.’ dsmich
2022-01-28  0:30 ` dsmich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877db5ldok.fsf@nckx \
    --to=bug-guile@gnu.org \
    --cc=53201@debbugs.gnu.org \
    --cc=me@tobias.gr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).