Skip to content

Commit

Permalink
attachments: Escape names properly in loading too
Browse files Browse the repository at this point in the history
  • Loading branch information
Jyrki Pulliainen committed Aug 24, 2010
1 parent 256092b commit 0dc3653
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion trombi/client.py
Expand Up @@ -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,
)

Expand Down

0 comments on commit 0dc3653

Please sign in to comment.