You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kernel.warn("#{directive} contains a ; in '#{minified_source_list}' which will raise an error in future versions. It has been replaced with a blank space.")
143
+
ifminified_source_list =~ /(\n|;)/
144
+
Kernel.warn("#{directive} contains a #{$1} in #{minified_source_list.inspect} which will raise an error in future versions. It has been replaced with a blank space.")
Copy file name to clipboardExpand all lines: spec/lib/secure_headers/headers/content_security_policy_spec.rb
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -29,10 +29,15 @@ module SecureHeaders
29
29
end
30
30
31
31
it"deprecates and escapes semicolons in directive source lists"do
32
-
expect(Kernel).toreceive(:warn).with("frame_ancestors contains a ; in 'google.com;script-src *;.;' which will raise an error in future versions. It has been replaced with a blank space.")
32
+
expect(Kernel).toreceive(:warn).with(%(frame_ancestors contains a ; in "google.com;script-src *;.;" which will raise an error in future versions. It has been replaced with a blank space.))
it"deprecates and escapes semicolons in directive source lists"do
37
+
expect(Kernel).toreceive(:warn).with(%(frame_ancestors contains a \n in "\\nfoo.com\\nhacked" which will raise an error in future versions. It has been replaced with a blank space.))
0 commit comments