lib/brakeman/processors/template_alias_processor.rb in brakeman-1.0.0 vs lib/brakeman/processors/template_alias_processor.rb in brakeman-1.1.pre
- old
+ new
@@ -81,6 +81,18 @@
return get_model_target(target)
end
false
end
+
+ def find_push_target exp
+ if sexp? exp
+ if exp.node_type == :lvar and (exp[1] == :_buf or exp[1] == :_erbout)
+ return nil
+ elsif exp.node_type == :ivar and exp[1] == :@output_buffer
+ return nil
+ end
+ end
+
+ super
+ end
end