summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xfb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fb.py b/fb.py
index 2f2735b..7a5df6d 100755
--- a/fb.py
+++ b/fb.py
@@ -622,7 +622,7 @@ class FBClient:
return Paste(self.extractId(arg))
if re.match('https?://', arg):
# FIXME: this does not work with URLs ending in / and it does not use content-disposition
- outfile = os.path.join(self.tempdir, os.path.basename(arg))
+ outfile = os.path.join(self.tempdir, os.path.basename(arg.strip("/")))
self.curlw.dl_file(arg, outfile)
return File(outfile)