misc/plugin/comment_mail-qmail.rb in tdiary-5.0.7 vs misc/plugin/comment_mail-qmail.rb in tdiary-5.0.8
- old
+ new
@@ -28,10 +28,10 @@
# You can distribute this file under the GPL2 or any later version.
#
def comment_mail( text, to )
begin
qmail = @conf['comment_mail.qmail'] || '/var/qmail/bin/qmail-inject'
- open( %Q[|'#{qmail.gsub(/'/, '')}' -f '#{@conf.author_mail.gsub( /'/, '' ).untaint}' '#{to.map{|x|x.gsub(/'/,'')}.join("' '")}'], 'w' ) do |o|
+ open( %Q[|'#{qmail.gsub(/'/, '')}' -f '#{@conf.author_mail.gsub( /'/, '' )}' '#{to.map{|x|x.gsub(/'/,'')}.join("' '")}'], 'w' ) do |o|
o.write( text )
end
rescue
$stderr.puts $!
end