mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
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:
parent
e02b33b60b
commit
558da94d94
2 changed files with 10 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue