mirror of
https://github.com/GNOME/libxml2.git
synced 2025-03-31 19:10:28 +08:00
validity status was not passed back when validating in entities, but
* parser.c: validity status was not passed back when validating in entities, but raised by Oliver Fischer Daniel
This commit is contained in:
parent
aec635690a
commit
5f8d1a3570
@ -1,3 +1,8 @@
|
||||
Sun Mar 23 22:00:14 CET 2003 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* parser.c: validity status was not passed back when validating in
|
||||
entities, but raised by Oliver Fischer
|
||||
|
||||
Sun Mar 23 21:30:50 CET 2003 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* HTMLtree.c: avoid escaping ',' in URIs
|
||||
|
3
parser.c
3
parser.c
@ -9603,6 +9603,7 @@ xmlParseCtxtExternalEntity(xmlParserCtxtPtr ctx, const xmlChar *URL,
|
||||
*/
|
||||
ctxt->instate = XML_PARSER_CONTENT;
|
||||
ctxt->validate = ctx->validate;
|
||||
ctxt->valid = ctx->valid;
|
||||
ctxt->loadsubset = ctx->loadsubset;
|
||||
ctxt->depth = ctx->depth + 1;
|
||||
ctxt->replaceEntities = ctx->replaceEntities;
|
||||
@ -9620,6 +9621,8 @@ xmlParseCtxtExternalEntity(xmlParserCtxtPtr ctx, const xmlChar *URL,
|
||||
|
||||
xmlParseContent(ctxt);
|
||||
|
||||
ctx->validate = ctxt->validate;
|
||||
ctx->valid = ctxt->valid;
|
||||
if ((RAW == '<') && (NXT(1) == '/')) {
|
||||
ctxt->errNo = XML_ERR_NOT_WELL_BALANCED;
|
||||
if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL))
|
||||
|
Loading…
x
Reference in New Issue
Block a user