mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-28 08:32:16 +01:00
Fixed long attachment names
This commit is contained in:
@@ -114,6 +114,8 @@ public class EntityAttachment {
|
||||
String filename = Long.toString(id);
|
||||
if (!TextUtils.isEmpty(name))
|
||||
filename += "." + Helper.sanitizeFilename(name);
|
||||
if (filename.length() > 255)
|
||||
filename = filename.substring(0, 255);
|
||||
return new File(dir, filename);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user