mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Fix failing safe buffer test. We don't patch CGI.escapeHTML, only ERB:Util.
This commit is contained in:
@@ -26,7 +26,7 @@ class SafeBufferTest < ActionView::TestCase
|
||||
end
|
||||
|
||||
test "Should not mess with a previously escape test" do
|
||||
@buffer << CGI.escapeHTML("<script>")
|
||||
@buffer << ERB::Util.html_escape("<script>")
|
||||
assert_equal "<script>", @buffer
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user