1
0
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:
Daniel Veillard
2003-04-23 13:56:44 +00:00
parent 5439624bd9
commit 85095e2c07
6 changed files with 13 additions and 8 deletions

View File

@ -5918,7 +5918,7 @@ docbCreatePushParserCtxt(docbSAXHandlerPtr sax, void *user_data,
if (filename == NULL)
inputStream->filename = NULL;
else
inputStream->filename = xmlMemStrdup(filename);
inputStream->filename = xmlCanonicPath(filename);
inputStream->buf = buf;
inputStream->base = inputStream->buf->buffer->content;
inputStream->cur = inputStream->buf->buffer->content;
@ -6030,8 +6030,7 @@ docbCreateFileParserCtxt(const char *filename,
}
memset(inputStream, 0, sizeof(docbParserInput));
inputStream->filename = (char *)
xmlCanonicPath((const xmlChar *)filename);
inputStream->filename = (char *) xmlCanonicPath((const xmlChar *)filename);
inputStream->line = 1;
inputStream->col = 1;
inputStream->buf = buf;