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:
2
parser.c
2
parser.c
@@ -11749,6 +11749,7 @@ xmlIOParseDTD(xmlSAXHandlerPtr sax, xmlParserInputBufferPtr input,
|
|||||||
xmlFreeParserInputBuffer(input);
|
xmlFreeParserInputBuffer(input);
|
||||||
return(NULL);
|
return(NULL);
|
||||||
}
|
}
|
||||||
|
xmlCtxtSetOptions(ctxt, XML_PARSE_DTDLOAD);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* generate a parser input from the I/O handler
|
* generate a parser input from the I/O handler
|
||||||
@@ -11839,6 +11840,7 @@ xmlSAXParseDTD(xmlSAXHandlerPtr sax, const xmlChar *ExternalID,
|
|||||||
if (ctxt == NULL) {
|
if (ctxt == NULL) {
|
||||||
return(NULL);
|
return(NULL);
|
||||||
}
|
}
|
||||||
|
xmlCtxtSetOptions(ctxt, XML_PARSE_DTDLOAD);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Canonicalise the system ID
|
* Canonicalise the system ID
|
||||||
|
|||||||
Reference in New Issue
Block a user