Replying to my own post, I've tracked this down to what may be a bug in parser.c. In my source base, which is 2.7.8, it's line 3883. /* * This may look absurd but is needed to detect * entities problems */ if ((ent->etype != XML_INTERNAL_PREDEFINED_ENTITY) && (ent->content != NULL)) { rep = xmlStringDecodeEntities(ctxt, ent->content, XML_SUBSTITUTE_REF, 0, 0, 0); if (rep != NULL) { xmlFree(rep); rep = NULL; } } What is this code doing? What "entities problems" is it avoiding? Shouldn't it check ctxt->replaceEntities before replacing the entities? Note that this only affects entities embedded in attribute values. -Jonah On Dec 1, 2010, at 2:51 PM, Jonah Petri wrote:
|
Attachment:
smime.p7s
Description: S/MIME cryptographic signature