LSWMimePartViewer.m (opengroupware-5.5rc2) | : | LSWMimePartViewer.m (opengroupware-5.5rc3) | ||
---|---|---|---|---|
skipping to change at line 452 | skipping to change at line 452 | |||
if (tmp != nil) { | if (tmp != nil) { | |||
tmp = [[tmp componentsSeparatedByString:@"\\"] lastObject]; | tmp = [[tmp componentsSeparatedByString:@"\\"] lastObject]; | |||
tmp = [NSString stringWithFormat:@"attachment; filename=\"%@\"", tmp]; | tmp = [NSString stringWithFormat:@"attachment; filename=\"%@\"", tmp]; | |||
} | } | |||
else | else | |||
tmp = @"attachment"; | tmp = @"attachment"; | |||
[response setHeader:[self _checkFor8Bit:tmp] | [response setHeader:[self _checkFor8Bit:tmp] | |||
forKey:@"content-disposition"]; | forKey:@"content-disposition"]; | |||
} | } | |||
[response setHeader:[NSString stringWithFormat:@"%d", [content length]] | [response setHeader:[NSString stringWithFormat:@"%"PRIuPTR, [content length]] | |||
forKey:@"content-length"]; | forKey:@"content-length"]; | |||
if (transferEncoding) { | if (transferEncoding) { | |||
if ([transferEncoding isEqualToString:@"base64"]) | if ([transferEncoding isEqualToString:@"base64"]) | |||
content = [content dataByDecodingBase64]; | content = [content dataByDecodingBase64]; | |||
else if ([transferEncoding isEqualToString:@"quoted-printable"]) | else if ([transferEncoding isEqualToString:@"quoted-printable"]) | |||
content = [content dataByDecodingQuotedPrintable]; | content = [content dataByDecodingQuotedPrintable]; | |||
else { | else { | |||
[self logWithFormat:@"Unknown content-transfer-encoding: %@", | [self logWithFormat:@"Unknown content-transfer-encoding: %@", | |||
transferEncoding]; | transferEncoding]; | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |