mirror of
https://github.com/michaelrsweet/mxml.git
synced 2024-11-13 07:15:30 +00:00
No longer allow malformed element names (Bug #509)
This commit is contained in:
parent
ff7486f265
commit
0744218d66
1
CHANGES
1
CHANGES
@ -5,6 +5,7 @@ CHANGES IN Mini-XML 2.10
|
||||
|
||||
- The version number in mxml.h was wrong (Bug #532)
|
||||
- The mxml.spec file was out of date (Bug #521)
|
||||
- Mini-XML no longer allows malformed element names (Bug #509)
|
||||
- mxmlLoad* and mxmlSAXLoad* did not properly create text nodes when
|
||||
MXML_TEXT_CALLBACK was specified (Bug #531)
|
||||
- mxmlDelete used a recursive algorithm which could require large
|
||||
|
@ -1577,6 +1577,8 @@ mxml_load_data(
|
||||
if (mxml_add_char(ch, &bufptr, &buffer, &bufsize))
|
||||
goto error;
|
||||
}
|
||||
else if (ch < '0' && ch != '!' && ch != '-' && ch != '.' && ch != '/')
|
||||
goto error;
|
||||
else if (mxml_add_char(ch, &bufptr, &buffer, &bufsize))
|
||||
goto error;
|
||||
else if (((bufptr - buffer) == 1 && buffer[0] == '?') ||
|
||||
|
Loading…
Reference in New Issue
Block a user