fix paste of quoted url (#351)

This commit is contained in:
Damien Elmes 2012-12-22 13:42:30 +09:00
parent e2c4fd5945
commit ebda335273

View file

@ -1087,7 +1087,7 @@ class EditorWebView(AnkiWebView):
except urllib2.URLError, e: except urllib2.URLError, e:
showWarning(self.errtxt % e) showWarning(self.errtxt % e)
return return
path = namedtmp(os.path.basename(url)) path = namedtmp(os.path.basename(urllib2.unquote(url)))
file = open(path, "wb") file = open(path, "wb")
file.write(filecontents) file.write(filecontents)
file.close() file.close()