Commit 33dc63a7 authored by topjohnwu's avatar topjohnwu

Fix filenames

parent d0a86385
...@@ -114,7 +114,8 @@ public class Utils { ...@@ -114,7 +114,8 @@ public class Utils {
public static String getLegalFilename(CharSequence filename) { public static String getLegalFilename(CharSequence filename) {
return filename.toString().replace(" ", "_").replace("'", "").replace("\"", "") return filename.toString().replace(" ", "_").replace("'", "").replace("\"", "")
.replace("$", "").replace("`", "").replace("(", "").replace(")", "") .replace("$", "").replace("`", "").replace("(", "").replace(")", "")
.replace("#", "").replace("@", "").replace("*", ""); .replace("#", "").replace("@", "").replace("*", "").replace("/", "_")
.replace("\\", "_");
} }
public static boolean isValidShellResponse(List<String> list) { public static boolean isValidShellResponse(List<String> list) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment