No longer allow malformed element names (Bug #509)

pull/193/head
Michael R Sweet 8 years ago
parent ff7486f265
commit 0744218d66
  1. 1
      CHANGES
  2. 2
      mxml-file.c

@ -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…
Cancel
Save