1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-21 14:53:44 +03:00

preparing 2.5.1 release fixing XmlTextReader bug Daniel

* configure.in doc/* NEWS: preparing 2.5.1 release
* SAX.c parser.c: fixing XmlTextReader bug
Daniel
This commit is contained in:
Daniel Veillard
2003-01-08 17:47:49 +00:00
parent 8bf70b956a
commit e2830f1e65
8 changed files with 31 additions and 2 deletions

4
SAX.c
View File

@@ -374,7 +374,9 @@ getEntity(void *ctx, const xmlChar *name)
} else {
ret = xmlGetDocEntity(ctxt->myDoc, name);
}
if ((ret != NULL) && (ctxt->validate) && (ret->children == NULL) &&
if ((ret != NULL) &&
((ctxt->validate) || (ctxt->replaceEntities)) &&
(ret->children == NULL) &&
(ret->etype == XML_EXTERNAL_GENERAL_PARSED_ENTITY)) {
/*
* for validation purposes we really need to fetch and