lib/contrast/agent/protect/rule/xss.rb in contrast-agent-4.6.0 vs lib/contrast/agent/protect/rule/xss.rb in contrast-agent-4.7.0
- old
+ new
@@ -10,10 +10,10 @@
# The Ruby implementation of the Protect Cross-Site Scripting rule.
class Xss < Contrast::Agent::Protect::Rule::BaseService
NAME = 'reflected-xss'
BLOCK_MESSAGE = 'XSS rule triggered. Response blocked.'
- def name
+ def rule_name
NAME
end
def stream_safe?
false