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 5658335 commit a7b0cfeCopy full SHA for a7b0cfe
lib/rails/html/scrubbers.rb
@@ -149,11 +149,11 @@ def validate!(var, name)
149
warn("WARNING: 'malignmark' tags cannot be allowed by the PermitScrubber and will be scrubbed")
150
var.delete("malignmark")
151
end
152
- end
153
154
- if var && name == :tags && var.include?("noscript")
155
- warn("WARNING: 'noscript' tags cannot be allowed by the PermitScrubber and will be scrubbed")
156
- var.delete("noscript")
+ if var.include?("noscript")
+ warn("WARNING: 'noscript' tags cannot be allowed by the PermitScrubber and will be scrubbed")
+ var.delete("noscript")
+ end
157
158
159
var
0 commit comments