Skip to content

Commit 5cce7af

Browse files
committed
parser: Fix loading of parameter entities in external DTDs
Regressed with commit 12f0bb9. Fixes #816.
1 parent 4334cbb commit 5cce7af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

parser.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11833,6 +11833,7 @@ xmlIOParseDTD(xmlSAXHandlerPtr sax, xmlParserInputBufferPtr input,
1183311833
xmlFreeParserInputBuffer(input);
1183411834
return(NULL);
1183511835
}
11836+
xmlCtxtSetOptions(ctxt, XML_PARSE_DTDLOAD);
1183611837

1183711838
/*
1183811839
* generate a parser input from the I/O handler
@@ -11922,6 +11923,7 @@ xmlSAXParseDTD(xmlSAXHandlerPtr sax, const xmlChar *ExternalID,
1192211923
if (ctxt == NULL) {
1192311924
return(NULL);
1192411925
}
11926+
xmlCtxtSetOptions(ctxt, XML_PARSE_DTDLOAD);
1192511927

1192611928
/*
1192711929
* Canonicalise the system ID

0 commit comments

Comments
 (0)