mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-19 10:25:27 +00:00
Improve handling of attachments names with quotes
Partially resolves #2272
This commit is contained in:
@@ -523,10 +523,9 @@ static NSArray *infoKeys = nil;
|
||||
if (!attachedFiles)
|
||||
attachedFiles = [NSMutableArray new];
|
||||
|
||||
newFilename = filename;
|
||||
|
||||
baseFilename = [filename stringByDeletingPathExtension];
|
||||
extension = [filename pathExtension];
|
||||
newFilename = [filename stringByReplacingOccurrencesOfString:@"\\\"" withString:@"\""]; /* to real filename */
|
||||
baseFilename = [newFilename stringByDeletingPathExtension];
|
||||
extension = [newFilename pathExtension];
|
||||
variation = 0;
|
||||
while ([attachedFiles containsObject: newFilename])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user