bug#53201: string->uri-reference rejects domain names with final ‘.’

Tobias Geerinckx-Rice via "Bug reports for GUILE, GNU's Ubiquitous Extension Language" <[email protected]>
Newsgroups gmane.lisp.guile.bugs
Message-ID <877db5ldok.fsf@nckx>
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
signature.asc (application/pgp-signature, 247 B)
-----BEGIN PGP SIGNATURE-----

iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYd5oew0cbWVAdG9iaWFz
LmdyAAoJEA2w/4hPVW15fc4A/3vxSxEPLggOtdLGfj3lNJCfouOy3YO5jy2PYugP
evlWAQD+JTQCfsOlPIn8uD/rv/KQZ1Gb5r0g/SWax/dhdmRdAg==
=gyJt
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.