mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-15 09:44:36 +00:00
Expat would report an incorrect "Unlosed token" error when
expanding %percent; in the second of these entity declarations: <!ENTITY % percent "%"> <!ENTITY %percent; y "value"> This patch was submitted by James Clark on the xml-dev mailing list.
This commit is contained in:
parent
f42e8ae96b
commit
57455c864c
1 changed files with 1 additions and 1 deletions
|
@ -882,7 +882,7 @@ PREFIX(scanPercent)(const ENCODING *enc, const char *ptr, const char *end,
|
|||
const char **nextTokPtr)
|
||||
{
|
||||
if (ptr == end)
|
||||
return XML_TOK_PARTIAL;
|
||||
return -XML_TOK_PERCENT;
|
||||
switch (BYTE_TYPE(enc, ptr)) {
|
||||
CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
|
||||
case BT_S: case BT_LF: case BT_CR: case BT_PERCNT:
|
||||
|
|
Loading…
Add table
Reference in a new issue