Fix attachment filename with no extension

This commit is contained in:
Francis Lachapelle committed 2016-06-22 16:35:05 -04:00
1 parent bfab819a7e
commit 1e458a922b
2 files changed
+7 -1

No files matched your search

+1 -1
View File
@@ -282,7 +282,7 @@
if ([filename length])
// We replace any slash by a dash since Apache won't allow encoded slashes by default.
// See http://httpd.apache.org/docs/2.2/mod/core.html#allowencodedslashes
filename = (NSMutableString *)[filename stringByReplacingString: @"/" withString: @"-"];
filename = [NSMutableString stringWithString: [filename stringByReplacingString: @"/" withString: @"-"]];
else
[filename appendFormat: @"%@-%@",
[self labelForKey: @"Untitled"],