applied fix from Mathias Hasselmann about a bug in URI parsing. fix bug
* uri.c: applied fix from Mathias Hasselmann about a bug in URI
parsing.
* xpath.c: fix bug #61291 the default XML namespace node is
missing from the namespace axis.
* tree.c: refuse to create namespaces nodes with prefix "xml"
Daniel
diff --git a/uri.c b/uri.c
index bbd3c30..a2e427a 100644
--- a/uri.c
+++ b/uri.c
@@ -1649,14 +1649,19 @@
static int
xmlParseAbsoluteURI(xmlURIPtr uri, const char **str) {
int ret;
+ const char *cur;
if (str == NULL)
return(-1);
+ cur = *str;
+
ret = xmlParseURIScheme(uri, str);
if (ret != 0) return(ret);
- if (**str != ':')
+ if (**str != ':') {
+ *str = cur;
return(1);
+ }
(*str)++;
if (**str == '/')
return(xmlParseURIHierPart(uri, str));