]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Support url-encoding in caps.
authornejucomo <nejucomo@gmail.com>
Sun, 13 Jan 2008 04:41:07 +0000 (21:41 -0700)
committernejucomo <nejucomo@gmail.com>
Sun, 13 Jan 2008 04:41:07 +0000 (21:41 -0700)
contrib/fuse/tahoe_fuse.py

index dfe4834fa87795e16fd843e05dbaf26d34af3203..5cab8f59e25436c907a1e3a32a3c34bd68155187 100644 (file)
@@ -429,6 +429,7 @@ class TahoeDir (TahoeNode):
         
         
 def canonicalize_cap(cap):
+    cap = urllib.unquote(cap)
     i = cap.find('URI:')
     assert i != -1, 'A cap must contain "URI:...", but this does not: ' + cap
     return cap[i:]