Class: Scanny::Checks::XssMarkCheck
- Defined in:
- lib/scanny/checks/xss/xss_mark_check.rb
Overview
Check for methods mark_as_xss_protected and mark_methods_as_xss_safe that are called and can mark dangerous string as safe for html.
Instance Method Summary collapse
Methods inherited from Check
#compiled_pattern, #issue, #strict?, #visit
Instance Method Details
#check(node) ⇒ Object
14 15 16 |
# File 'lib/scanny/checks/xss/xss_mark_check.rb', line 14 def check(node) issue :info, end |
#pattern ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/scanny/checks/xss/xss_mark_check.rb', line 6 def pattern [ pattern_mark_as_safe, pattern_xss_safe, pattern_mark_methods_as_xss_safe ].join("|") end |