Improve handling of attachments names with quotes

Partially resolves #2272
pull/210/head
Francis Lachapelle 2016-05-31 15:34:48 -04:00
parent 1dca078c56
commit c11839cd5e
1 changed files with 3 additions and 4 deletions

View File

@ -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])
{