aboutsummaryrefslogtreecommitdiffstats
path: root/SAX.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2003-03-22 15:18:01 +0000
committerDaniel Veillard <veillard@src.gnome.org>2003-03-22 15:18:01 +0000
commit9ff2d4785cf15a5cae9e78ecf32611b9c8a0fff6 (patch)
tree2077c6177498cf62e924f948ddbb7f5408db7b73 /SAX.c
parent99737f5053f5c1a14ecfe637008259fba193dd09 (diff)
downloadandroid_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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/SAX.c b/SAX.c
index 5aaf2f78..3ee76e71 100644
--- a/SAX.c
+++ b/SAX.c
@@ -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.