From 7bbe2e366d9958ff04d261266964df06e08e5fae Mon Sep 17 00:00:00 2001 From: James Clark Date: Sun, 8 Feb 1998 08:11:35 +0000 Subject: [PATCH] Mark dtd as incomplete when a top-level parameter entity reference is encountered --- expat/xmlparse/xmlparse.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/expat/xmlparse/xmlparse.c b/expat/xmlparse/xmlparse.c index ecacce7e..d72f1e76 100755 --- a/expat/xmlparse/xmlparse.c +++ b/expat/xmlparse/xmlparse.c @@ -1050,6 +1050,9 @@ prologProcessor(XML_Parser parser, } groupConnector[prologState.level] = '|'; break; + case XML_ROLE_PARAM_ENTITY_REF: + dtd.complete = 0; + break; case XML_ROLE_NONE: switch (tok) { case XML_TOK_PI: