From: nejucomo Date: Sun, 13 Jan 2008 04:41:07 +0000 (-0700) Subject: Support url-encoding in caps. X-Git-Tag: allmydata-tahoe-0.8.0~308 X-Git-Url: https://git.rkrishnan.org/listings/...?a=commitdiff_plain;h=0b5f9ff5c3903ac6d5f8a2ad3eb0d4ded3b7ccee;p=tahoe-lafs%2Ftahoe-lafs.git Support url-encoding in caps. --- diff --git a/contrib/fuse/tahoe_fuse.py b/contrib/fuse/tahoe_fuse.py index dfe4834f..5cab8f59 100644 --- a/contrib/fuse/tahoe_fuse.py +++ b/contrib/fuse/tahoe_fuse.py @@ -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:]