mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
found another bug while looking at #309616 on missing entities. this
* parser.c: found another bug while looking at #309616 on missing entities. * result/ent2.sax* result/ent7.sax* result/xml2.sax*: this changed the SAX stream in missing conditions for a few tests Daniel
This commit is contained in:
5
parser.c
5
parser.c
@@ -6100,6 +6100,11 @@ xmlParseEntityRef(xmlParserCtxtPtr ctxt) {
|
||||
} else {
|
||||
xmlErrMsgStr(ctxt, XML_WAR_UNDECLARED_ENTITY,
|
||||
"Entity '%s' not defined\n", name);
|
||||
if ((ctxt->inSubset == 0) &&
|
||||
(ctxt->sax != NULL) &&
|
||||
(ctxt->sax->reference != NULL)) {
|
||||
ctxt->sax->reference(ctxt, name);
|
||||
}
|
||||
}
|
||||
ctxt->valid = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user