Commit ec579201 authored by Kim F. Storm's avatar Kim F. Storm
Browse files

(ido-wide-find-dirs-or-files): Use shell-quote-argument.

parent 5879ac68
......@@ -3136,7 +3136,12 @@ for first matching file."
(let ((filenames
(split-string
(shell-command-to-string
(concat "find " dir " -name \"" (if prefix "" "*") file "*\" -type " (if finddir "d" "f") " -print"))))
(concat "find "
(shell-quote-argument dir)
" -name "
(shell-quote-argument
(concat (if prefix "" "*") file "*"))
" -type " (if finddir "d" "f") " -print"))))
filename d f
res)
(while filenames
......
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