aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/asset_tag_helper.rb
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-10-18 13:58:57 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2010-10-18 13:59:56 -0200
commit330327eeecd3666a7b9b407e804b36cb1bc3cb48 (patch)
treebb2ed398e59ef6a073ebd44f7bd09739a9a63c06 /actionpack/lib/action_view/helpers/asset_tag_helper.rb
parentdf044ec4ace106b05a1db40a9c14addeafe0dd7a (diff)
downloadrails-330327eeecd3666a7b9b407e804b36cb1bc3cb48.tar.gz
rails-330327eeecd3666a7b9b407e804b36cb1bc3cb48.tar.bz2
rails-330327eeecd3666a7b9b407e804b36cb1bc3cb48.zip
Call html_escape in ERB::Util module and don't mix it in in the helpers
Diffstat (limited to 'actionpack/lib/action_view/helpers/asset_tag_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/asset_tag_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/asset_tag_helper.rb b/actionpack/lib/action_view/helpers/asset_tag_helper.rb
index d0f91f6b71..a728fde748 100644
--- a/actionpack/lib/action_view/helpers/asset_tag_helper.rb
+++ b/actionpack/lib/action_view/helpers/asset_tag_helper.rb
@@ -4,6 +4,7 @@ require 'action_view/helpers/url_helper'
require 'action_view/helpers/tag_helper'
require 'active_support/core_ext/file'
require 'active_support/core_ext/object/blank'
+require 'active_support/core_ext/string/output_safety'
module ActionView
# = Action View Asset Tag Helpers
@@ -819,7 +820,7 @@ module ActionView
end
def stylesheet_tag(source, options)
- tag("link", { "rel" => "stylesheet", "type" => Mime::CSS, "media" => "screen", "href" => html_escape(path_to_stylesheet(source)) }.merge(options), false, false)
+ tag("link", { "rel" => "stylesheet", "type" => Mime::CSS, "media" => "screen", "href" => ERB::Util.html_escape(path_to_stylesheet(source)) }.merge(options), false, false)
end
def compute_javascript_paths(*args)