diff --git a/aqt/editor.py b/aqt/editor.py index 9bcc4fc83..5b93c60e9 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -1087,7 +1087,7 @@ class EditorWebView(AnkiWebView): except urllib2.URLError, e: showWarning(self.errtxt % e) return - path = namedtmp(os.path.basename(url)) + path = namedtmp(os.path.basename(urllib2.unquote(url))) file = open(path, "wb") file.write(filecontents) file.close()