[libxml2] Continue to parse entity refs in recovery mode



commit 84823b86344fb530790a8787b80abf62715ea885
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Sat Mar 5 22:48:11 2022 +0100

    Continue to parse entity refs in recovery mode
    
    There doesn't seem to be a good reason to abort in xmlParseReference
    if a well-formedness error was detected. Removing this check allows to
    parse entity references after an error in recovery mode.
    
    Fixes #270.

 parser.c | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/parser.c b/parser.c
index 712328ca..3a5da54f 100644
--- a/parser.c
+++ b/parser.c
@@ -7123,8 +7123,6 @@ xmlParseReference(xmlParserCtxtPtr ctxt) {
      */
     ent = xmlParseEntityRef(ctxt);
     if (ent == NULL) return;
-    if (!ctxt->wellFormed)
-       return;
     was_checked = ent->checked;
 
     /* special case of predefined entities */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]