mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
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
This commit is contained in:
4
parser.c
4
parser.c
@ -9543,7 +9543,7 @@ xmlSAXParseDTD(xmlSAXHandlerPtr sax, const xmlChar *ExternalID,
|
||||
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 @@ xmlSetupParserForBuffer(xmlParserCtxtPtr ctxt, const xmlChar* buffer,
|
||||
|
||||
xmlClearParserCtxt(ctxt);
|
||||
if (filename != NULL)
|
||||
input->filename = xmlMemStrdup(filename);
|
||||
input->filename = xmlCanonicPath(filename);
|
||||
input->base = buffer;
|
||||
input->cur = buffer;
|
||||
input->end = &buffer[xmlStrlen(buffer)];
|
||||
|
Reference in New Issue
Block a user