Fix filenames

This commit is contained in:
topjohnwu 2018-02-12 03:09:38 +08:00
parent d0a86385b7
commit 33dc63a7fd

View File

@ -114,7 +114,8 @@ public class Utils {
public static String getLegalFilename(CharSequence filename) {
return filename.toString().replace(" ", "_").replace("'", "").replace("\"", "")
.replace("$", "").replace("`", "").replace("(", "").replace(")", "")
.replace("#", "").replace("@", "").replace("*", "");
.replace("#", "").replace("@", "").replace("*", "").replace("/", "_")
.replace("\\", "_");
}
public static boolean isValidShellResponse(List<String> list) {