1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-28 23:14:57 +03:00

parser: Fix loading of parameter entities in external DTDs

Regressed with commit 12f0bb94.

Fixes #816.
This commit is contained in:
Nick Wellnhofer
2024-11-01 16:52:31 +01:00
parent 36117723d4
commit 869e3fd421

View File

@@ -11749,6 +11749,7 @@ xmlIOParseDTD(xmlSAXHandlerPtr sax, xmlParserInputBufferPtr input,
xmlFreeParserInputBuffer(input);
return(NULL);
}
xmlCtxtSetOptions(ctxt, XML_PARSE_DTDLOAD);
/*
* generate a parser input from the I/O handler
@@ -11839,6 +11840,7 @@ xmlSAXParseDTD(xmlSAXHandlerPtr sax, const xmlChar *ExternalID,
if (ctxt == NULL) {
return(NULL);
}
xmlCtxtSetOptions(ctxt, XML_PARSE_DTDLOAD);
/*
* Canonicalise the system ID