diff --git a/app/src/main/java/com/github/shadowsocks/plugin/gost/ConfigActivity.java b/app/src/main/java/com/github/shadowsocks/plugin/gost/ConfigActivity.java index 685a394..ff3f66f 100644 --- a/app/src/main/java/com/github/shadowsocks/plugin/gost/ConfigActivity.java +++ b/app/src/main/java/com/github/shadowsocks/plugin/gost/ConfigActivity.java @@ -404,8 +404,6 @@ private void saveUI() throws NullPointerException, JSONException { String arg = oneOfArgs.toString(); if (arg.startsWith("\"") && arg.endsWith("\"")) arg = arg.substring(1, arg.length() - 1); - arg = arg.replaceAll(Matcher.quoteReplacement("\\\""), "\""); - arg = arg.replaceAll("\"", Matcher.quoteReplacement("\\\"")); // oneOrTwoArgs.put("\"" + arg + "\""); // adding quotes leads to crash oneOrTwoArgs.put(arg); }