Fixed bug in decoding key encoded data elements.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18492 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2004-01-27 22:08:22 +00:00
parent cb7a4b0777
commit 2878a6472f
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2004-01-27 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSPropertyList.m (nodeToObject()): Fixed bug in handling
of data elements. Was using [GSMimeDocument decodeBase64String:]
instead of [GSMimeDocument decodeBase64:].
2004-01-27 Fred Kiefer <FredKiefer@gmx.de>
* Source/GSArray.m:

View file

@ -936,7 +936,8 @@ nodeToObject(GSXMLNode* node, NSPropertyListMutabilityOptions o, NSString **e)
}
else if ([name isEqualToString: @"data"])
{
result = [GSMimeDocument decodeBase64String: content];
result = [GSMimeDocument decodeBase64:
[content dataUsingEncoding: NSASCIIStringEncoding]];
if (o == NSPropertyListMutableContainersAndLeaves)
{
result = AUTORELEASE([result mutableCopy]);