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:
parent
5803257681
commit
e1a77a9e91
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue