1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Assume ActionView::Helpers::TextHelper has safe_concat

This commit is contained in:
Norman Clarke 2012-05-30 12:37:32 -03:00
parent 5803257681
commit e1a77a9e91

View file

@ -320,10 +320,8 @@ HAML
assert_equal("Foo & Bar", render('- concat(Haml::Util.html_safe("Foo & Bar"))', :action_view))
end
if Haml::Util.has?(:instance_method, ActionView::Helpers::TextHelper, :safe_concat)
def test_xss_protection_with_safe_concat
assert_equal("Foo & Bar", render('- safe_concat "Foo & Bar"', :action_view))
end
def test_xss_protection_with_safe_concat
assert_equal("Foo & Bar", render('- safe_concat "Foo & Bar"', :action_view))
end
## Regression