Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
avoid adding quotes; strip quotes in gost
Browse files Browse the repository at this point in the history
  • Loading branch information
segfault-bilibili committed Feb 14, 2022
1 parent f947c32 commit 25d38c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,8 @@ private void saveUI() throws NullPointerException, JSONException {
arg = arg.substring(1, arg.length() - 1);
arg = arg.replaceAll(Matcher.quoteReplacement("\\\""), "\"");
arg = arg.replaceAll("\"", Matcher.quoteReplacement("\\\""));
oneOrTwoArgs.put("\"" + arg + "\"");
// oneOrTwoArgs.put("\"" + arg + "\""); // adding quotes leads to crash
oneOrTwoArgs.put(arg);
}
allArgs.put(oneOrTwoArgs);
}
Expand Down
2 changes: 1 addition & 1 deletion gost
Submodule gost updated 1 files
+4 −0 cmd/gost/main.go

0 comments on commit 25d38c5

Please sign in to comment.