@@ -1099,7 +1099,7 @@ def test_should_sanitize_across_newlines
10991099 def test_should_prune_mglyph
11001100 # https://hackerone.com/reports/2519936
11011101 input = "<math><mtext><table><mglyph><style><img src=: onerror=alert(1)>"
1102- tags = %w( math mtext table mglyph style )
1102+ tags = %w( math mtext table mglyph style ) . freeze
11031103
11041104 actual = nil
11051105 assert_output ( nil , /WARNING: 'mglyph' tags cannot be allowed by the PermitScrubber/ ) do
@@ -1119,7 +1119,7 @@ def test_should_prune_mglyph
11191119 def test_should_prune_malignmark
11201120 # https://hackerone.com/reports/2519936
11211121 input = "<math><mtext><table><malignmark><style><img src=: onerror=alert(1)>"
1122- tags = %w( math mtext table malignmark style )
1122+ tags = %w( math mtext table malignmark style ) . freeze
11231123
11241124 actual = nil
11251125 assert_output ( nil , /WARNING: 'malignmark' tags cannot be allowed by the PermitScrubber/ ) do
@@ -1138,7 +1138,9 @@ def test_should_prune_malignmark
11381138
11391139 def test_should_prune_noscript
11401140 # https://hackerone.com/reports/2509647
1141- input , tags = "<div><noscript><p id='</noscript><script>alert(1)</script>'></noscript>" , [ "p" , "div" , "noscript" ]
1141+ input = "<div><noscript><p id='</noscript><script>alert(1)</script>'></noscript>"
1142+ tags = [ "p" , "div" , "noscript" ] . freeze
1143+
11421144 actual = nil
11431145 assert_output ( nil , /WARNING: 'noscript' tags cannot be allowed by the PermitScrubber/ ) do
11441146 actual = safe_list_sanitize ( input , tags : tags , attributes : %w( id ) )
0 commit comments