From adef90791867001f859d3b3fdcb46d265148cd11 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Tue, 24 Nov 2009 19:08:53 -0800 Subject: [PATCH] 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! --- notmuch.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notmuch.el b/notmuch.el index 9a209545..551048ad 100644 --- a/notmuch.el +++ b/notmuch.el @@ -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))) -- 2.43.0