XInclude xpointer support was broken with the new namespace. Fixes #129932
* xinclude.c result/XInclude/nodes2.*: XInclude xpointer support
was broken with the new namespace. Fixes #129932
Daniel
diff --git a/xinclude.c b/xinclude.c
index b68c308..3bee9ee 100644
--- a/xinclude.c
+++ b/xinclude.c
@@ -1334,6 +1334,11 @@
fragment = (xmlChar *) uri->fragment;
uri->fragment = NULL;
}
+ if ((ctxt->incTab != NULL) && (ctxt->incTab[nr] != NULL) &&
+ (ctxt->incTab[nr]->fragment != NULL)) {
+ if (fragment != NULL) xmlFree(fragment);
+ fragment = xmlStrdup(ctxt->incTab[nr]->fragment);
+ }
URL = xmlSaveUri(uri);
xmlFreeURI(uri);
if (URL == NULL) {