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) if (!attachedFiles)
attachedFiles = [NSMutableArray new]; attachedFiles = [NSMutableArray new];
newFilename = filename; newFilename = [filename stringByReplacingOccurrencesOfString:@"\\\"" withString:@"\""]; /* to real filename */
baseFilename = [newFilename stringByDeletingPathExtension];
baseFilename = [filename stringByDeletingPathExtension]; extension = [newFilename pathExtension];
extension = [filename pathExtension];
variation = 0; variation = 0;
while ([attachedFiles containsObject: newFilename]) while ([attachedFiles containsObject: newFilename])
{ {