unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#53201: string->uri-reference rejects domain names with final ‘.’
@ 2022-01-12  2:56 Tobias Geerinckx-Rice via Bug reports for GUILE, GNU's Ubiquitous Extension Language
  2022-01-27  0:40 ` dsmich
  2022-01-28  0:30 ` dsmich
  0 siblings, 2 replies; 3+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GUILE, GNU's Ubiquitous Extension Language @ 2022-01-12  2:56 UTC (permalink / raw)
  To: 53201

[-- 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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-01-28  0:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-12  2:56 bug#53201: string->uri-reference rejects domain names with final ‘.’ Tobias Geerinckx-Rice via Bug reports for GUILE, GNU's Ubiquitous Extension Language
2022-01-27  0:40 ` dsmich
2022-01-28  0:30 ` dsmich

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).