mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-02-02 00:05:27 +00:00
shlex.quote
This commit is contained in:
parent
4e03326ec5
commit
d6d2f55a4f
@ -1,4 +1,5 @@
|
||||
import csv
|
||||
import shlex
|
||||
import typing
|
||||
|
||||
from mitmproxy import ctx
|
||||
@ -259,7 +260,7 @@ class ConsoleAddon:
|
||||
|
||||
def callback(opt):
|
||||
# We're now outside of the call context...
|
||||
repl = "\"" + " ".join(args) + "\""
|
||||
repl = shlex.quote(" ".join(args))
|
||||
repl = repl.replace("{choice}", opt)
|
||||
try:
|
||||
self.master.commands.call(subcmd + " " + repl)
|
||||
|
Loading…
Reference in New Issue
Block a user