From 86abde54c0b63dedcf62a9a6ccc6870e1af96c54 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 10 Jul 2013 18:00:53 -0400 Subject: [PATCH] Fix python proxy to not crash when fed unicode data in getstate and setstate. --- doc/bugs/proxy.py_utf8_troubles.mdwn | 2 ++ plugins/proxy.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/bugs/proxy.py_utf8_troubles.mdwn b/doc/bugs/proxy.py_utf8_troubles.mdwn index a4e848102..7e8f70e59 100644 --- a/doc/bugs/proxy.py_utf8_troubles.mdwn +++ b/doc/bugs/proxy.py_utf8_troubles.mdwn @@ -31,3 +31,5 @@ python3 and we'd just move the problem to the stderr writing later on; instead, debug output doesn't look that pretty any more, but is safe. --[[chrysn]] + +> ok, [[done]] --[[Joey]] diff --git a/plugins/proxy.py b/plugins/proxy.py index 41cc45700..ca731301f 100755 --- a/plugins/proxy.py +++ b/plugins/proxy.py @@ -175,7 +175,7 @@ class _IkiWikiExtPluginXMLRPCHandler(object): data = _xmlrpc_client.loads(xml)[0][0] self._debug_fn( 'parsed data from response to procedure {0}: [{1}]'.format( - cmd, data)) + cmd, repr(data))) return data def handle_rpc(self, in_fd, out_fd): -- 2.39.5