diff options
author | Maximilian Hils <git@maximilianhils.com> | 2018-02-20 01:54:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-20 01:54:27 +0100 |
commit | 1d23d50a9d1f4d4c864aa982df3274e344aa0a46 (patch) | |
tree | 4c1de34f1896a3fed403e5394ccc90f42555f0f6 | |
parent | da4c1ee625a3451b58c69454ecd5f4faf3cb67d4 (diff) | |
parent | d6d2f55a4f4f36519192706501880f11aa0b7217 (diff) | |
download | mitmproxy-1d23d50a9d1f4d4c864aa982df3274e344aa0a46.tar.gz mitmproxy-1d23d50a9d1f4d4c864aa982df3274e344aa0a46.tar.bz2 mitmproxy-1d23d50a9d1f4d4c864aa982df3274e344aa0a46.zip |
Merge pull request #2873 from kajojify/contentviews_items
Fix a bug with two-words contentview modes
-rw-r--r-- | mitmproxy/tools/console/consoleaddons.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mitmproxy/tools/console/consoleaddons.py b/mitmproxy/tools/console/consoleaddons.py index 03f2e240..c73eda42 100644 --- a/mitmproxy/tools/console/consoleaddons.py +++ b/mitmproxy/tools/console/consoleaddons.py @@ -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) |