From 0dc3653c16af8e3016ed83fe0adfef3d4d00a629 Mon Sep 17 00:00:00 2001 From: Jyrki Pulliainen Date: Wed, 12 May 2010 13:56:20 +0300 Subject: [PATCH] attachments: Escape names properly in loading too --- trombi/client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/trombi/client.py b/trombi/client.py index 724657a..2f7b556 100644 --- a/trombi/client.py +++ b/trombi/client.py @@ -336,7 +336,10 @@ def _really_callback(response): callback(b64decode(self.attachments[name]['data'])) else: self.db._fetch( - '%s/%s' % (self.id, name), + '%s/%s' % ( + urllib.quote(self.id, safe=''), + urllib.quote(name, safe='') + ), _really_callback, )