mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-28 21:54:10 +01:00
notmuch.el: Quote arguments to protect from shell interpretation.
We want to allow the user to be able to use search expressions with parentheses and semi-colons, etc. and we definitely don't want the shell interpreting those!
This commit is contained in:
parent
93af7b5745
commit
adef907918
1 changed files with 1 additions and 1 deletions
|
@ -1033,7 +1033,7 @@ This function advances point to the next line when finished."
|
||||||
(let ((proc (start-process-shell-command
|
(let ((proc (start-process-shell-command
|
||||||
"notmuch-search" buffer notmuch-command "search"
|
"notmuch-search" buffer notmuch-command "search"
|
||||||
(if oldest-first "--sort=oldest-first" "--sort=newest-first")
|
(if oldest-first "--sort=oldest-first" "--sort=newest-first")
|
||||||
query)))
|
(shell-quote-argument query))))
|
||||||
(set-process-sentinel proc 'notmuch-search-process-sentinel)
|
(set-process-sentinel proc 'notmuch-search-process-sentinel)
|
||||||
(set-process-filter proc 'notmuch-search-process-filter))))
|
(set-process-filter proc 'notmuch-search-process-filter))))
|
||||||
(run-hooks 'notmuch-search-hook)))
|
(run-hooks 'notmuch-search-hook)))
|
||||||
|
|
Loading…
Reference in a new issue