commit 4480647703939e89d1cd98ff7eeb5c6eec3a7948
parent 9bfe7ee6169eb3e5c722112340291ca5a7ca73a7
Author: Dan Callaghan <djc@djc.id.au>
Date: Sat, 21 Nov 2026 17:02:22 +1100
shell escape bounce destination addresses
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/modes/thread_view_mode.rb b/lib/sup/modes/thread_view_mode.rb
@@ -267,7 +267,7 @@ EOS
cmd = case (hookcmd = HookManager.run "bounce-command", :from => m.from, :to => to)
when nil, /^$/ then defcmd
else hookcmd
- end + ' ' + to.map { |t| t.email }.join(' ')
+ end + ' ' + to.map { |t| Shellwords.escape t.email }.join(' ')
bt = to.size > 1 ? "#{to.size} recipients" : to[0].to_s