Commit d2b5f445 authored by Eli Zaretskii's avatar Eli Zaretskii

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)
parent 7523a9e8
Pipeline #900 failed with stage
in 49 minutes and 48 seconds
......@@ -130,6 +130,7 @@ Return nil if URI is not a local file."
(match-string 0 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)))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment