We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3bd6e18 + d4cf870 commit 27f992cCopy full SHA for 27f992c
aqt/editor.py
@@ -544,8 +544,8 @@ def isURL(self, s):
544
def _retrieveURL(self, url):
545
"Download file into media folder and return local filename or None."
546
# urllib doesn't understand percent-escaped utf8, but requires things like
547
- # '#' to be escaped. we don't try to unquote the incoming URL, because
548
- # we should only be receiving file:// urls from url mime, which is unquoted
+ # '#' to be escaped.
+ url = urllib.parse.unquote(url)
549
if url.lower().startswith("file://"):
550
url = url.replace("%", "%25")
551
url = url.replace("#", "%23")
0 commit comments