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 02f500b commit b639a8dCopy full SHA for b639a8d
ruby/ql/src/queries/security/cwe-116/examples/BadTagFilter.rb
@@ -1,8 +1,8 @@
1
-def filterScripTags(html)
2
- oldHtml = "";
3
- while (html != oldHtml)
4
- oldHtml = html;
5
- html = html.gsub(/<script[^>]*>.*<\/script>/m, "");
+def filter_script_tags(html)
+ old_html = ""
+ while (html != old_html)
+ old_html = html
+ html = html.gsub(/<script[^>]*>.*<\/script>/m, "")
6
end
7
- return html;
+ html
8
0 commit comments