mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 14:17:03 +02:00
Sanitize attachment filenames
This commit is contained in:
@@ -1001,4 +1001,8 @@ public class Helper {
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
static String sanitizeFilename(String name) {
|
||||
return (name == null ? null : name.replaceAll("[^a-zA-Z0-9\\.\\-]", "_"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user