mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 01:21:08 +00:00
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:
parent
f8119e8345
commit
f5973ac70f
2 changed files with 10 additions and 0 deletions
|
@ -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>
|
2008-01-28 Adam Fedor <fedor@gnu.org>
|
||||||
|
|
||||||
* configure.ac: Add option to disable bfd.
|
* configure.ac: Add option to disable bfd.
|
||||||
|
|
|
@ -1223,6 +1223,10 @@ NSLog(@"_processTag <%@%@ %@>", flag?@"/": @"", tag, attributes);
|
||||||
NSLog(@"tag=%@ - %02x %c", tag, c, isprint(c)?c: ' ');
|
NSLog(@"tag=%@ - %02x %c", tag, c, isprint(c)?c: ' ');
|
||||||
#endif
|
#endif
|
||||||
parameters = [NSMutableDictionary dictionaryWithCapacity: 5];
|
parameters = [NSMutableDictionary dictionaryWithCapacity: 5];
|
||||||
|
while (isspace(c))
|
||||||
|
{
|
||||||
|
c = cget();
|
||||||
|
}
|
||||||
while (c != EOF)
|
while (c != EOF)
|
||||||
{
|
{
|
||||||
if (c == '/' && *tp != '/')
|
if (c == '/' && *tp != '/')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue