aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-07-25 14:37:19 -0700
committerMaximilian Hils <git@maximilianhils.com>2016-07-25 14:37:19 -0700
commitffe6593361670a5963d2e07ed6ac2d5f022a66e7 (patch)
treea915dcd7de7baa4e60220adf793a60827e4c3707
parent56796aeda25dda66621ce78af227ff46049ef811 (diff)
downloadmitmproxy-ffe6593361670a5963d2e07ed6ac2d5f022a66e7.tar.gz
mitmproxy-ffe6593361670a5963d2e07ed6ac2d5f022a66e7.tar.bz2
mitmproxy-ffe6593361670a5963d2e07ed6ac2d5f022a66e7.zip
make sure to escape errors printed to the console
-rw-r--r--mitmproxy/builtins/dumper.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mitmproxy/builtins/dumper.py b/mitmproxy/builtins/dumper.py
index 74c2e6b2..59f9349d 100644
--- a/mitmproxy/builtins/dumper.py
+++ b/mitmproxy/builtins/dumper.py
@@ -231,7 +231,8 @@ class Dumper(object):
self._echo_message(f.response)
if f.error:
- self.echo(" << {}".format(f.error.msg), bold=True, fg="red")
+ msg = strutils.escape_control_characters(f.error.msg)
+ self.echo(" << {}".format(msg), bold=True, fg="red")
def match(self, f):
if self.flow_detail == 0: