mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +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
|
||||
"notmuch-search" buffer notmuch-command "search"
|
||||
(if oldest-first "--sort=oldest-first" "--sort=newest-first")
|
||||
query)))
|
||||
(shell-quote-argument query))))
|
||||
(set-process-sentinel proc 'notmuch-search-process-sentinel)
|
||||
(set-process-filter proc 'notmuch-search-process-filter))))
|
||||
(run-hooks 'notmuch-search-hook)))
|
||||
|
|
Loading…
Reference in a new issue