diff options
author | Eli Zaretskii <eliz@gnu.org> | 2019-03-02 20:07:36 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2019-03-02 20:07:36 +0200 |
commit | d2b5f445c1a5f9e105eb65e10b28a40645516656 (patch) | |
tree | 7152c6b9e6031941e22464cbc18681c0e6fb3fc4 /lisp/dnd.el | |
parent | 7523a9e8b26f763eecd50981a3f2d6e705284324 (diff) | |
download | emacs-d2b5f445c1a5f9e105eb65e10b28a40645516656.tar.gz emacs-d2b5f445c1a5f9e105eb65e10b28a40645516656.tar.bz2 emacs-d2b5f445c1a5f9e105eb65e10b28a40645516656.zip |
Fix DND on MS-Windows with files from UNC directories
* lisp/dnd.el (dnd-get-local-file-uri): Always return nil on
MS-Windows, as this method cannot possibly work there: URIs
that begin with the local system's name are UNCs, where the
//SERVER part cannot be removed. (Bug#34675)
Diffstat (limited to 'lisp/dnd.el')
-rw-r--r-- | lisp/dnd.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/dnd.el b/lisp/dnd.el index 73703863e6b..459a7238dcd 100644 --- a/lisp/dnd.el +++ b/lisp/dnd.el @@ -130,6 +130,7 @@ Return nil if URI is not a local file." (match-string 0 sysname) sysname)))) (when (and hostname + (not (eq system-type 'windows-nt)) (or (string-equal "localhost" hostname) (string-equal (downcase sysname) hostname) (string-equal sysname-no-dot hostname))) |