Allow for quoted numeric/date values in property list.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22642 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2006-03-12 10:57:04 +00:00
parent 1474635584
commit fadc20abd9
2 changed files with 15 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2006-03-12 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSPropertyList.m: Allow for quoting of numeric/date values
in property lists. Fixes bug #16068
2006-03-11 Richard Frith-Macdonald <rfm@gnu.org> 2006-03-11 Richard Frith-Macdonald <rfm@gnu.org>
* Headers/Additions/GNUstepBase/GSXML.h: clarify documentation of * Headers/Additions/GNUstepBase/GSXML.h: clarify documentation of

View file

@ -711,6 +711,16 @@ static id parsePlItem(pldata* pld)
unsigned char type = *ptr++; unsigned char type = *ptr++;
len--; len--;
// Allow for quoted values.
if (ptr[0] == '\'' && len > 1)
{
len--;
ptr++;
if (ptr[len - 1] == '\'')
{
len--;
}
}
if (type == 'I') if (type == 'I')
{ {
char buf[len+1]; char buf[len+1];