summaryrefslogtreecommitdiff
path: root/uri.c
diff options
context:
space:
mode:
authorDennis Filder <d.filder@web.de>2014-06-13 14:56:14 +0800
committerDaniel Veillard <veillard@redhat.com>2014-06-13 14:56:14 +0800
commit8eb55d782a2b9afacc7938694891cc6fad7b42a5 (patch)
tree19335e30861727b0cb64b6335f79102090a21338 /uri.c
parent3e0eec43196e9c4d770b9a932ad131316794f7b4 (diff)
downloadlibxml2-8eb55d782a2b9afacc7938694891cc6fad7b42a5.tar.gz
xmlSaveUri() incorrectly recomposes URIs with rootless paths
For https://bugzilla.gnome.org/show_bug.cgi?id=731063 xmlSaveUri() of libxml2 (snapshot 2014-05-31 and earlier) returns bogus values when called with URIs that have rootless paths (e.g. "urx:b:b" becomes "urx://b%3Ab" where "urx:b%3Ab" would be correct)
Diffstat (limited to 'uri.c')
-rw-r--r--uri.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/uri.c b/uri.c
index 4ab0ce2e..d4dcd2fe 100644
--- a/uri.c
+++ b/uri.c
@@ -1194,8 +1194,6 @@ xmlSaveUri(xmlURIPtr uri) {
if (temp == NULL) goto mem_error;
ret = temp;
}
- ret[len++] = '/';
- ret[len++] = '/';
}
if (uri->path != NULL) {
p = uri->path;