1
0
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:
Daniel Veillard
2005-08-24 14:46:07 +00:00
parent 2644ab270e
commit 53bd1f3c2c
8 changed files with 18 additions and 0 deletions

View File

@@ -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;
}