mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
multipart parser fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@10662 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d8f99ed3c5
commit
fc51307fab
2 changed files with 4 additions and 2 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
* Source/GSMime.m: ([-decodeData:fromRange:intoData:withContext:])
|
||||
One line fix suggested by Stephen Brandon
|
||||
* Source/GSMime.m: ([-_decodeBody:]) fix parsing multipart documents as there was an error in the logic for testing to see if the sub docs
|
||||
had been parsed correctly.
|
||||
|
||||
2001-08-03 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ typedef enum {
|
|||
* enc content-transfer-encoding
|
||||
* Purpose - Decode text with BASE64 or QUOTED-PRINTABLE codes.
|
||||
*/
|
||||
unsigned char*
|
||||
static unsigned char*
|
||||
decodeWord(unsigned char *dst, unsigned char *src, unsigned char *end, WE enc)
|
||||
{
|
||||
int c;
|
||||
|
@ -1694,7 +1694,7 @@ parseCharacterSet(NSString *token)
|
|||
*/
|
||||
d = [NSData dataWithBytes: &bytes[sectionStart]
|
||||
length: lineStart - sectionStart];
|
||||
if ([child parse: d] == YES && [child parse: nil] == YES)
|
||||
if ([child parse: d] == YES || [child parse: nil] == YES)
|
||||
{
|
||||
NSMutableArray *a;
|
||||
GSMimeDocument *doc;
|
||||
|
|
Loading…
Reference in a new issue