mirror of https://github.com/M66B/FairEmail.git
Sanitize more file name characters
This commit is contained in:
parent
dcce8a89a0
commit
c94f272714
|
@ -477,9 +477,7 @@ public class Helper {
|
|||
static String sanitizeFilename(String name) {
|
||||
if (name == null)
|
||||
return null;
|
||||
return name
|
||||
.replace("\0", "_")
|
||||
.replace("/", "_");
|
||||
return name.replaceAll("[?:\"*|/\\\\<>]", "_");
|
||||
}
|
||||
|
||||
static String getExtension(String filename) {
|
||||
|
|
Loading…
Reference in New Issue