try to find more places where xmlCanonicPath() must be used to convert
* DOCBparser.c SAX.c catalog.c debugXML.c parser.c: try to find
more places where xmlCanonicPath() must be used to convert
filenames to URLs, trying to fix #111088
Daniel
diff --git a/parser.c b/parser.c
index 728b5bd..c1ce81e 100644
--- a/parser.c
+++ b/parser.c
@@ -9543,7 +9543,7 @@
xmlSwitchEncoding(ctxt, enc);
if (input->filename == NULL)
- input->filename = (char *) xmlStrdup(SystemID);
+ input->filename = (char *) xmlCanonicPath(SystemID);
input->line = 1;
input->col = 1;
input->base = ctxt->input->cur;
@@ -10681,7 +10681,7 @@
xmlClearParserCtxt(ctxt);
if (filename != NULL)
- input->filename = xmlMemStrdup(filename);
+ input->filename = xmlCanonicPath(filename);
input->base = buffer;
input->cur = buffer;
input->end = &buffer[xmlStrlen(buffer)];