mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
fix paste of quoted url (#351)
This commit is contained in:
parent
e2c4fd5945
commit
ebda335273
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue