commit | cff2546f13503ac028e4c1f63c7b6d85f2f2d777 | [log] [tgz] |
---|---|---|
author | Daniel Veillard <veillard@redhat.com> | Mon Mar 11 15:57:55 2013 +0800 |
committer | Daniel Veillard <veillard@redhat.com> | Mon Mar 11 15:59:22 2013 +0800 |
tree | 0d7f1f6ddd654f18a6959f1b4732cf591c71bf7d | |
parent | a3f1e3e5712257fd279917a9158278534e8f4b72 [diff] [blame] |
Cache presence of '<' in entities content slightly modify how ent->checked is used, and use the lowest bit to keep the information
diff --git a/SAX2.c b/SAX2.c index ce7a5d6..c7ecd7f 100644 --- a/SAX2.c +++ b/SAX2.c
@@ -605,7 +605,9 @@ } ret->owner = 1; if (ret->checked == 0) { - ret->checked = ctxt->nbentities - oldnbent + 1; + ret->checked = (ctxt->nbentities - oldnbent + 1) * 2; + if ((ret->content != NULL) && (xmlStrchr(ret->content, '<'))) + ret->checked |= 1; } } return(ret);