mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +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
b436ef6553
commit
ed0d53c973
2 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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