From ebda335273e6a59a43d38ff4d6e50f34b28dcf47 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 22 Dec 2012 13:42:30 +0900 Subject: [PATCH] fix paste of quoted url (#351) --- aqt/editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()