forked from Mirrors/apostrophe
Fix erroneous unescaping of link uris
Unescaped links won't work when containing special characters.github/fork/yochananmarqos/patch-1
parent
1cc2fc5a4c
commit
7c6d2c12a3
|
@ -28,7 +28,6 @@ class DragDropHandler:
|
||||||
if info == TARGET_URI:
|
if info == TARGET_URI:
|
||||||
uris = data.get_uris()
|
uris = data.get_uris()
|
||||||
for uri in uris:
|
for uri in uris:
|
||||||
uri = urllib.parse.unquote_plus(uri)
|
|
||||||
mime = mimetypes.guess_type(uri)
|
mime = mimetypes.guess_type(uri)
|
||||||
|
|
||||||
if mime[0] is not None and mime[0].startswith('image'):
|
if mime[0] is not None and mime[0].startswith('image'):
|
||||||
|
|
Loading…
Reference in New Issue