Merge pull request #2873 from kajojify/contentviews_items

Fix a bug with two-words contentview modes
This commit is contained in:
Maximilian Hils 2018-02-20 01:54:27 +01:00 committed by GitHub
commit 1d23d50a9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,5 @@
import csv import csv
import shlex
import typing import typing
from mitmproxy import ctx from mitmproxy import ctx
@ -259,7 +260,7 @@ class ConsoleAddon:
def callback(opt): def callback(opt):
# We're now outside of the call context... # We're now outside of the call context...
repl = " ".join(args) repl = shlex.quote(" ".join(args))
repl = repl.replace("{choice}", opt) repl = repl.replace("{choice}", opt)
try: try:
self.master.commands.call(subcmd + " " + repl) self.master.commands.call(subcmd + " " + repl)