[xml] [PATCH 1/2] Revert "xmlSaveUri() incorrectly recomposes URIs with rootless paths"



This reverts commit 8eb55d782a2b9afacc7938694891cc6fad7b42a5.

Signed-off-by: Martin Kletzander <mkletzan redhat com>
---
 uri.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/uri.c b/uri.c
index d4dcd2f..4ab0ce2 100644
--- a/uri.c
+++ b/uri.c
@@ -1194,6 +1194,8 @@ xmlSaveUri(xmlURIPtr uri) {
                 if (temp == NULL) goto mem_error;
                 ret = temp;
            }
+           ret[len++] = '/';
+           ret[len++] = '/';
        }
        if (uri->path != NULL) {
            p = uri->path;
-- 
2.1.1



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