Fix bug in sloppy xml parser

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26027 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2008-02-06 17:30:50 +00:00
parent 2b3276e792
commit 39ab63995b
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2008-02-06 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSXMLParser.m: Fix bug in sloppy parser, failing
to skip space at end of tag and therefore missing the trailing
'/' in a collapsed element.
2008-01-28 Adam Fedor <fedor@gnu.org>
* configure.ac: Add option to disable bfd.

View file

@ -1223,6 +1223,10 @@ NSLog(@"_processTag <%@%@ %@>", flag?@"/": @"", tag, attributes);
NSLog(@"tag=%@ - %02x %c", tag, c, isprint(c)?c: ' ');
#endif
parameters = [NSMutableDictionary dictionaryWithCapacity: 5];
while (isspace(c))
{
c = cget();
}
while (c != EOF)
{
if (c == '/' && *tp != '/')