]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
Fix python proxy to not crash when fed unicode data in getstate and setstate.
authorJoey Hess <joey@kitenet.net>
Wed, 10 Jul 2013 22:00:53 +0000 (18:00 -0400)
committerJoey Hess <joey@kitenet.net>
Wed, 10 Jul 2013 22:00:53 +0000 (18:00 -0400)
doc/bugs/proxy.py_utf8_troubles.mdwn
plugins/proxy.py

index a4e84810254be137043f07a74ee1f9bfddfead50..7e8f70e59cf145d5df7ed665687e677ed661038c 100644 (file)
@@ -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]] 
index 41cc45700bc8c730c96b4c11ae2b2277af95d3ba..ca731301fbbd46e54640bdabe95fb41bbcf5890f 100755 (executable)
@@ -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):