mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-05 04:20:15 +01:00
upgrade vendored rails to 2.3.14
This commit is contained in:
parent
2db1640695
commit
fe1f67a8cf
28 changed files with 97 additions and 29 deletions
|
|
@ -5,6 +5,13 @@ class SanitizerTest < ActionController::TestCase
|
|||
@sanitizer = nil # used by assert_sanitizer
|
||||
end
|
||||
|
||||
def test_strip_tags_with_quote
|
||||
sanitizer = HTML::FullSanitizer.new
|
||||
string = '<" <img src="trollface.gif" onload="alert(1)"> hi'
|
||||
|
||||
assert_equal ' hi', sanitizer.sanitize(string)
|
||||
end
|
||||
|
||||
def test_strip_tags
|
||||
sanitizer = HTML::FullSanitizer.new
|
||||
assert_equal("<<<bad html", sanitizer.sanitize("<<<bad html"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue