mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-30 22:43:14 +03:00
fixing bug 105049 for validity checking of content within recursive
* parser.c: fixing bug 105049 for validity checking of content within recursive entities. Daniel
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
Tue Feb 4 16:05:53 CET 2003 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* parser.c: fixing bug 105049 for validity checking of content
|
||||
within recursive entities.
|
||||
|
||||
Tue Feb 4 15:40:54 CET 2003 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* HTMLparser.c: try to fix # 105049
|
||||
|
8
parser.c
8
parser.c
@ -9949,9 +9949,6 @@ xmlParseBalancedChunkMemoryInternal(xmlParserCtxtPtr oldctxt,
|
||||
ctxt->instate = XML_PARSER_CONTENT;
|
||||
ctxt->depth = oldctxt->depth + 1;
|
||||
|
||||
/*
|
||||
* Doing validity checking on chunk doesn't make sense
|
||||
*/
|
||||
ctxt->validate = 0;
|
||||
ctxt->loadsubset = oldctxt->loadsubset;
|
||||
|
||||
@ -9999,6 +9996,11 @@ xmlParseBalancedChunkMemoryInternal(xmlParserCtxtPtr oldctxt,
|
||||
cur = ctxt->myDoc->children->children;
|
||||
*lst = cur;
|
||||
while (cur != NULL) {
|
||||
if (oldctxt->validate && oldctxt->wellFormed &&
|
||||
oldctxt->myDoc && oldctxt->myDoc->intSubset) {
|
||||
oldctxt->valid &= xmlValidateElement(&oldctxt->vctxt,
|
||||
oldctxt->myDoc, cur);
|
||||
}
|
||||
cur->parent = NULL;
|
||||
cur = cur->next;
|
||||
}
|
||||
|
Reference in New Issue
Block a user