summaryrefslogtreecommitdiff
path: root/result
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2022-12-12 23:54:39 +0100
committerNick Wellnhofer <wellnhofer@aevum.de>2022-12-13 01:43:49 +0100
commitae0c9cfa050f68252ca6ee8f3d271250247fb32a (patch)
tree0739b1eeaef453991267ee6a17b7e805de090a32 /result
parent8ed40c621b33b44c26e90505b9de1c92080c4a8e (diff)
downloadlibxml2-ae0c9cfa050f68252ca6ee8f3d271250247fb32a.tar.gz
uri: Fix handling of port numbers
Allow port number without host, real fix for #71. Also compare port numbers in xmlBuildRelativeURI. Fix handling of port numbers in xmlUriEscape.
Diffstat (limited to 'result')
-rw-r--r--result/URI/file.uri1
-rw-r--r--result/URI/port.uri2
-rw-r--r--result/URI/uri.data3
3 files changed, 6 insertions, 0 deletions
diff --git a/result/URI/file.uri b/result/URI/file.uri
new file mode 100644
index 00000000..8d8b7a79
--- /dev/null
+++ b/result/URI/file.uri
@@ -0,0 +1 @@
+file:///foo.txt
diff --git a/result/URI/port.uri b/result/URI/port.uri
new file mode 100644
index 00000000..4b223228
--- /dev/null
+++ b/result/URI/port.uri
@@ -0,0 +1,2 @@
+nbd://:10888
+https://example.com:12345/
diff --git a/result/URI/uri.data b/result/URI/uri.data
index f22b4db6..90c79058 100644
--- a/result/URI/uri.data
+++ b/result/URI/uri.data
@@ -16,3 +16,6 @@ http://foo.com/root.cgi?OK#OK2
http://elsewhere.com/#deep
http://elsewhere.com/?deep
http://elsewhere.com/?deep#deep2
+http://elsewhere.com/bar
+http://elsewhere.com:8080/bar
+http://:8080