mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-28 00:20:50 +01:00
Fixed long attachment names
This commit is contained in:
@@ -529,13 +529,7 @@ public class Helper {
|
||||
if (name == null)
|
||||
return null;
|
||||
|
||||
name = name.replaceAll("[?:\"*|/\\\\<>]", "_");
|
||||
|
||||
// Both the name and extension can be long
|
||||
if (name.length() > 255)
|
||||
name = name.substring(0, 255);
|
||||
|
||||
return name;
|
||||
return name.replaceAll("[?:\"*|/\\\\<>]", "_");
|
||||
}
|
||||
|
||||
static String getExtension(String filename) {
|
||||
|
||||
Reference in New Issue
Block a user