applied a patch based on Petr Sumbera one to avoid a problem with paths
* uri.c: applied a patch based on Petr Sumbera one to avoid a
problem with paths starting with //
Daniel
svn path=/trunk/; revision=3683
diff --git a/uri.c b/uri.c
index 34841af..cf3768b 100644
--- a/uri.c
+++ b/uri.c
@@ -2418,6 +2418,11 @@
if (path == NULL)
return(NULL);
+
+ /* sanitize filename starting with // so it can be used as URI */
+ if ((path[0] == '/') && (path[1] == '/') && (path[2] != '/'))
+ path++;
+
if ((uri = xmlParseURI((const char *) path)) != NULL) {
xmlFreeURI(uri);
return xmlStrdup(path);