Fixed long attachment names

This commit is contained in:
M66B
2019-07-30 14:46:02 +02:00
parent d9dd78e3a7
commit 0affd9e1f3
2 changed files with 3 additions and 7 deletions

View File

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