mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-29 17:11:12 +01: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