Merged — thank you for the report and the fix!
- Arne
signature.asc
Description: PGP signature
New patch. Now with 3 test cases!
-Dale
From f4eece6395e75197030bff42a583e847e5a34e15 Mon Sep 17 00:00:00 2001
From: "Dale P. Smith"
Date: Thu, 27 Jan 2022 19:20:57 -0500
Subject: [PATCH] Allow trailing "." in urls
bug #53201
---
module/web/uri.scm| 17 ++---
test-suit
Probably not the best fix. Seems to work. Includes a few tests.
-Dale
diff --git a/module/web/uri.scm b/module/web/uri.scm
index 8e0b9bee7..d6758fcc6 100644
--- a/module/web/uri.scm
+++ b/module/web/uri.scm
@@ -212,7 +212,9 @@ for ‘build-uri’ except there is no scheme."
(and (regexp-exec domain-
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 = #< … host: "x.org" …>
scheme@(guile-user)> (string->uri-reference "http://x.org.";)
$2 = #f ; wrong!
This actually breaks