lib/brakeman/checks/check_simple_format.rb in brakeman-lib-4.5.0 vs lib/brakeman/checks/check_simple_format.rb in brakeman-lib-4.5.1

- old
+ new

@@ -3,9 +3,14 @@ class Brakeman::CheckSimpleFormat < Brakeman::CheckCrossSiteScripting Brakeman::Checks.add self @description = "Checks for simple_format XSS vulnerability (CVE-2013-6416) in certain versions" + def initialize *args + super + @found_any = false + end + def run_check if version_between? "4.0.0", "4.0.1" @inspect_arguments = true @ignore_methods = Set[:h, :escapeHTML]