diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-09-24 08:13:55 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-09-24 08:13:55 +0000 |
commit | 4b33306c704d6429e42e317802c92bc57f0de61c (patch) | |
tree | d8486d2913a5433be9ab31c74fa8357f93a0e376 /actionpack/test/template | |
parent | 38454983b48a117737bcd25d3962e2578d6c38f0 (diff) | |
download | rails-4b33306c704d6429e42e317802c92bc57f0de61c.tar.gz rails-4b33306c704d6429e42e317802c92bc57f0de61c.tar.bz2 rails-4b33306c704d6429e42e317802c92bc57f0de61c.zip |
The tag helper may bypass escaping.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7608 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/tag_helper_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/test/template/tag_helper_test.rb b/actionpack/test/template/tag_helper_test.rb index 1e8957d756..c7edc678ff 100644 --- a/actionpack/test/template/tag_helper_test.rb +++ b/actionpack/test/template/tag_helper_test.rb @@ -73,4 +73,8 @@ class TagHelperTest < Test::Unit::TestCase assert_equal %(<a href="#{escaped.gsub /&/, '&'}" />), tag('a', :href => escaped) end end + + def test_disable_escaping + assert_equal '<a href="&" />', tag('a', { :href => '&' }, false, false) + end end |