Tweak for buggy/intolerant base64 decoders ... ensure that bas64 encoded

sections are terminated with crlf even though the RFC does not require it.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20914 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2005-03-16 14:38:04 +00:00
parent e02b33b60b
commit 558da94d94
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-03-15 Richard Frith-Macdonald <rfm@gnu.org>
* Source/Additions/GSMime.m: Ensure last line of base64 encoded data
is terminated with crlf for clients which have buggy base64 decodedrs.
2005-03-15 Richard Frith-Macdonald <rfm@gnu.org>
* Source/Additions/GSMime.m: Mark ([setDefaultEncoding:]) as deprecated

View file

@ -4582,7 +4582,11 @@ static NSCharacterSet *tokenSet = nil;
[md appendBytes: "\r\n" length: 2];
pos += 76;
}
[md appendBytes: &ptr[pos] length: len-pos];
if (pos < len)
{
[md appendBytes: &ptr[pos] length: len-pos];
[md appendBytes: "\r\n" length: 2];
}
}
else if ([[enc value] isEqualToString: @"x-uuencode"] == YES)
{