vendor/bundle/ruby/2.3.0/gems/sqreen-1.10.5/lib/sqreen/rules_callbacks/reflected_xss.rb
# The remaining code is only to find out if user entry was an attack,
# and record it. Since we don't rely on it to respond to user, it would
# be better to do it in background.
The remaining code is only to find out if user entry was an attack,
and record it. Since we don't rely on it to respond to user, it would
be better to do it in background.
The remaining code is only to find out if user entry was an attack and record it . Since we don ' t rely on it to respond to user it would be better to do it in background .
def report_dangerous_xss?(value)
        found = match_regexp(value)
        return false unless found
        infos = {
          :found => found,
          :payload => value,
        }
        record_event(infos)
        true
      end
def report_dangerous_xss? ( value ) found = match_regexp ( value ) return false unless found infos = { :found => found , :payload => value , } record_event ( infos ) true end
The remaining code is only to find out if user entry was an attack,
and record it.
The remaining code is only to find out if user entry was an attack and record it .
value
<not_specific>