We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afa451a commit bc771d1Copy full SHA for bc771d1
test/sanitizer_test.rb
@@ -326,8 +326,8 @@ def test_should_not_fall_for_xss_image_hack_with_uppercase_tags
326
%(<IMG SRC="jav
ascript:alert('XSS');">),
327
%(<IMG SRC="  javascript:alert('XSS');">),
328
%(<IMG SRC="javascript:alert('XSS');">),
329
- %(<IMG SRC=`javascript:alert("RSnake says, 'XSS'")`>)].each_with_index do |img_hack, i|
330
- define_method "test_should_not_fall_for_xss_image_hack_#{i+1}" do
+ %(<IMG SRC=`javascript:alert("RSnake says, 'XSS'")`>)].each do |img_hack|
+ define_method "test_should_not_fall_for_xss_image_hack_#{img_hack}" do
331
assert_sanitized img_hack, "<img>"
332
end
333
0 commit comments