mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-23 04:15:26 +00:00
Fix attachment filename with no extension
This commit is contained in:
@@ -8,6 +8,9 @@ Enhancements
|
||||
- [core] avoid showing bundle loading info when not needed (#3726)
|
||||
- [core] when restoring data using sogo-tool, regenerate Sieve script (#3029)
|
||||
|
||||
Bug fixes
|
||||
- [web] fixed crash when an attachment filename has no extension
|
||||
|
||||
2.3.12 (2016-06-10)
|
||||
-------------------
|
||||
|
||||
|
||||
@@ -270,7 +270,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"],
|
||||
|
||||
Reference in New Issue
Block a user