mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-26 10:49:33 +00:00
(dnd-get-local-file-name): Decode both upper and lower
case hex. Do not try to decode non-hex letters.
This commit is contained in:
parent
eb6526ba7e
commit
e39ef8913c
@ -146,7 +146,7 @@ Return nil if URI is not a local file."
|
||||
(substring uri (match-end 0))))))
|
||||
(when (and f must-exist)
|
||||
(setq f (replace-regexp-in-string
|
||||
"%[A-Z0-9][A-Z0-9]"
|
||||
"%[A-Fa-f0-9][A-Fa-f0-9]"
|
||||
(lambda (arg)
|
||||
(format "%c" (string-to-number (substring arg 1) 16)))
|
||||
f nil t))
|
||||
|
Loading…
Reference in New Issue
Block a user