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:
CaS 2005-03-16 14:38:04 +00:00
parent b436ef6553
commit ed0d53c973
2 changed files with 10 additions and 1 deletions

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)
{