bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Tobias Geerinckx-Rice
Subject: bug#53201: string->uri-reference rejects domain names with final ‘.’
Date: Wed, 12 Jan 2022 03:56:17 +0100

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: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]