aboutsummaryrefslogtreecommitdiffstats
path: root/lib/make_html_4_compliant.rb
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2013-01-04 09:45:52 +1100
committerMatthew Landauer <matthew@openaustralia.org>2013-01-04 09:47:06 +1100
commit44947335b285673591ef44c9c66efa584298e6ee (patch)
treed2d37100701f0d4af3c72cd11c11fd9de2587ac7 /lib/make_html_4_compliant.rb
parent463b003eb11071e52ad07c3808ac6924d0301dc0 (diff)
parent1d71ab6d1aa7e5de00753f7b97a8158ee2bc3333 (diff)
Merge branch 'rails_xss' into rails-3-spike
Conflicts: Gemfile Gemfile.lock app/views/request/_hidden_correspondence.rhtml app/views/request/hidden.rhtml app/views/request/new_please_describe.rhtml app/views/user/show.rhtml lib/i18n_fixes.rb
Diffstat (limited to 'lib/make_html_4_compliant.rb')
-rw-r--r--lib/make_html_4_compliant.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/make_html_4_compliant.rb b/lib/make_html_4_compliant.rb
index 214eb9f1f..8926d5873 100644
--- a/lib/make_html_4_compliant.rb
+++ b/lib/make_html_4_compliant.rb
@@ -3,7 +3,6 @@
ActionView::Helpers::TagHelper.module_eval do
def tag(name, options = nil, open = false, escape = true)
- "<#{name}#{tag_options(options, escape) if options}" + (open ? ">" : ">")
+ "<#{name}#{tag_options(options, escape) if options}#{open ? ">" : ">"}".html_safe
end
end
-