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:
4
SAX.c
4
SAX.c
@@ -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
|
||||
|
Reference in New Issue
Block a user