diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2003-03-22 15:18:01 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2003-03-22 15:18:01 +0000 |
commit | 9ff2d4785cf15a5cae9e78ecf32611b9c8a0fff6 (patch) | |
tree | 2077c6177498cf62e924f948ddbb7f5408db7b73 /SAX.c | |
parent | 99737f5053f5c1a14ecfe637008259fba193dd09 (diff) | |
download | android_external_libxml2-9ff2d4785cf15a5cae9e78ecf32611b9c8a0fff6.tar.gz android_external_libxml2-9ff2d4785cf15a5cae9e78ecf32611b9c8a0fff6.tar.bz2 android_external_libxml2-9ff2d4785cf15a5cae9e78ecf32611b9c8a0fff6.zip |
fix bug #107208 avoid false duplicates when ID/REFs are defined in
* SAX.c: fix bug #107208 avoid false duplicates when ID/REFs are
defined in entities content
Daniel
Diffstat (limited to 'SAX.c')
-rw-r--r-- | SAX.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1068,8 +1068,9 @@ my_attribute(void *ctx, const xmlChar *fullname, const xmlChar *value, ctxt->valid &= xmlValidateOneAttribute(&ctxt->vctxt, ctxt->myDoc, ctxt->node, ret, value); } - } else if (((ctxt->replaceEntities == 0) && (ctxt->external != 2)) || - ((ctxt->replaceEntities != 0) && (ctxt->inSubset == 0))) { + } else if ((((ctxt->replaceEntities == 0) && (ctxt->external != 2)) || + ((ctxt->replaceEntities != 0) && (ctxt->inSubset == 0))) && + (ctxt->depth == 0)) { /* * when validating, the ID registration is done at the attribute * validation level. Otherwise we have to do specific handling here. |