Fix filenames
This commit is contained in:
parent
d0a86385b7
commit
33dc63a7fd
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user