commit dc987fff83414adfbaaf244d0ef17b9a4a8ac1e3
parent 25416760f004461d25b6db1f7878c5e0efa0444c
Author: Gaute Hope <eg@gaute.vetsj.com>
Date: Wed, 28 Aug 2013 10:27:34 +0200
Merge branch 'safe-mime-decode-hook' into develop
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/doc/Hooks.txt b/doc/Hooks.txt
@@ -50,10 +50,11 @@ before-poll:
mime-decode:
## turn text/html attachments into plain text, unless they are part
## of a multipart/alternative pair
+ require 'shellwords'
unless sibling_types.member? "text/plain"
case content_type
when "text/html"
- `/usr/bin/w3m -dump -T #{content_type} '#{filename}'`
+ `/usr/bin/w3m -dump -T #{content_type} '#{Shellwords.escape filename}'`
end
end