diff --git a/parser.c b/parser.c index c0dea05..f368bb5 100644 --- a/parser.c +++ b/parser.c @@ -2608,6 +2608,7 @@ xmlParserHandlePEReference(xmlParserCtxtPtr ctxt) { if ((entity->etype == XML_EXTERNAL_PARAMETER_ENTITY) && ((ctxt->options & XML_PARSE_NOENT) == 0) && ((ctxt->options & XML_PARSE_DTDVALID) == 0) && + ((ctxt->options & XML_PARSE_DTDLOAD) == 0) && (ctxt->validate == 0)) return;