Skip to content
Browse files

Avoid symbol injection

  • Loading branch information...
1 parent 9b7aa46 commit 957e154eafbc568a8c489d5733fe6b9831b9d9cd @josevalim josevalim committed Jul 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mail_form/shim.rb
View
2 lib/mail_form/shim.rb
@@ -25,7 +25,7 @@ def i18n_scope
# Initialize assigning the parameters given as hash.
def initialize(params={})
params.each_pair do |attr, value|
- self.send(:"#{attr}=", value)
+ send("#{attr}=", value) if respond_to?("#{attr}=", true)
end unless params.blank?
end

0 comments on commit 957e154

Please sign in to comment.
Something went wrong with that request. Please try again.