Fixed filename encoding when saving attachments
Monotone-Parent: 5921568bee00f491f2b94ec6398344393f1b38aa Monotone-Revision: abb5586a4e3106406e50e06ede15d3b91f24c512 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2009-07-20T23:00:44 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
20f67bc34f
commit
cae33222d6
|
@ -1,3 +1,9 @@
|
|||
2009-07-21 Francis Lachapelle <flachapelle@inverse.ca>
|
||||
|
||||
* SoObjects/Mailer/SOGoMailBodyPart.m ([SOGoMailBodyPart
|
||||
-stringByEscapingURL]): the UTF-8 encoding is now specified for the
|
||||
filename of an attachment.
|
||||
|
||||
2009-07-20 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* SoObjects/Appointments/SOGoAppointmentFolder.m
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
#import <NGObjWeb/WOResponse.h>
|
||||
#import <NGExtensions/NSNull+misc.h>
|
||||
#import <NGExtensions/NSObject+Logs.h>
|
||||
#import <NGExtensions/NSString+misc.h>
|
||||
#import <NGExtensions/NGBase64Coding.h>
|
||||
#import <NGExtensions/NGQuotedPrintableCoding.h>
|
||||
#import <NGImap4/NGImap4Connection.h>
|
||||
|
@ -401,8 +402,9 @@ static BOOL debugOn = NO;
|
|||
{
|
||||
fileName = [self filename];
|
||||
if ([fileName length])
|
||||
[response setHeader: [NSString stringWithFormat: @"attachment; filename=%@", fileName]
|
||||
forKey: @"content-disposition"];
|
||||
[response setHeader: [NSString stringWithFormat: @"attachment; filename*=\"utf-8''%@\"",
|
||||
[fileName stringByEscapingURL]]
|
||||
forKey: @"content-disposition"];
|
||||
}
|
||||
|
||||
etag = [self davEntityTag];
|
||||
|
|
Loading…
Reference in New Issue