diff options
author | Xavier Noria <fxn@hashref.com> | 2010-06-30 00:12:48 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-06-30 00:32:26 +0200 |
commit | ec3bfa2ead7337fe99ff036d4b8b5ae0a321f8cd (patch) | |
tree | 279fc483dc43b82d1c29b9f49263dc686d821bca /actionpack/lib/action_view/helpers/tag_helper.rb | |
parent | cba1460a2fe2bbe1153620582a66e03cec9ba7a5 (diff) | |
download | rails-ec3bfa2ead7337fe99ff036d4b8b5ae0a321f8cd.tar.gz rails-ec3bfa2ead7337fe99ff036d4b8b5ae0a321f8cd.tar.bz2 rails-ec3bfa2ead7337fe99ff036d4b8b5ae0a321f8cd.zip |
s/escape_once/html_escape/, since html safety is the contract that now says whether something has to be escaped
Diffstat (limited to 'actionpack/lib/action_view/helpers/tag_helper.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/tag_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/tag_helper.rb b/actionpack/lib/action_view/helpers/tag_helper.rb index d4e8b3d587..5d032b32a7 100644 --- a/actionpack/lib/action_view/helpers/tag_helper.rb +++ b/actionpack/lib/action_view/helpers/tag_helper.rb @@ -122,7 +122,7 @@ module ActionView attrs << %(#{key}="#{key}") if value elsif !value.nil? final_value = value.is_a?(Array) ? value.join(" ") : value - final_value = escape_once(final_value) if escape + final_value = html_escape(final_value) if escape attrs << %(#{key}="#{final_value}") end end |