diff --git a/lib/brakeman/processors/haml_template_processor.rb b/lib/brakeman/processors/haml_template_processor.rb index 375ff17d26b9eeaf3cd366b147dc23e3e2fb6fbb..7c4c1441a5da1432a3fcd20d24a6135326504fae 100644 --- a/lib/brakeman/processors/haml_template_processor.rb +++ b/lib/brakeman/processors/haml_template_processor.rb @@ -29,14 +29,12 @@ class Brakeman::HamlTemplateProcessor < Brakeman::TemplateProcessor method = exp.method - if (call? target and target.method == :_hamlout) or target == :_hamlout + if (call? target and target.method == :_hamlout) res = case method when :adjust_tabs, :rstrip!, :attributes #Check attributes, maybe? ignore - when :options - Sexp.new :call, :_hamlout, :options, exp.arglist - when :buffer - Sexp.new :call, :_hamlout, :buffer, exp.arglist + when :options, :buffer + exp when :open_tag Sexp.new(:tag, process(exp.arglist)) else