aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2012-01-05 13:43:43 -0800
committerJosé Valim <jose.valim@gmail.com>2012-01-05 13:43:43 -0800
commit55fbc19b5ff062bdd96c81532311e897ecb2a996 (patch)
tree02fe9b3ab8941668e2cc808c5dbdeb404b1fa07c
parentb2b2eb3d3f68d94ebeb9bcc0f5ad60f7b2e45bfa (diff)
parentad0336e528c053e9fcea7b1c1721b1d0e643483f (diff)
downloadrails-55fbc19b5ff062bdd96c81532311e897ecb2a996.tar.gz
rails-55fbc19b5ff062bdd96c81532311e897ecb2a996.tar.bz2
rails-55fbc19b5ff062bdd96c81532311e897ecb2a996.zip
Merge pull request #4335 from lest/useless-multibyte-clean
remove use of Multibyte.clean as it's no-op in ruby 1.9
-rw-r--r--actionpack/lib/action_view/helpers/tag_helper.rb2
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 8c33ef09fa..93a3c40683 100644
--- a/actionpack/lib/action_view/helpers/tag_helper.rb
+++ b/actionpack/lib/action_view/helpers/tag_helper.rb
@@ -118,7 +118,7 @@ module ActionView
# escape_once("&lt;&lt; Accept & Checkout")
# # => "&lt;&lt; Accept &amp; Checkout"
def escape_once(html)
- ActiveSupport::Multibyte.clean(html.to_s).gsub(/[\"><]|&(?!([a-zA-Z]+|(#\d+));)/) { |special| ERB::Util::HTML_ESCAPE[special] }
+ html.to_s.gsub(/[\"><]|&(?!([a-zA-Z]+|(#\d+));)/) { |special| ERB::Util::HTML_ESCAPE[special] }
end
private