lib/brakeman/processors/output_processor.rb in brakeman-lib-4.5.0 vs lib/brakeman/processors/output_processor.rb in brakeman-lib-4.5.1
- old
+ new
@@ -6,9 +6,14 @@
#
# OutputProcessor.new.format(Sexp.new(:str, "hello"))
class Brakeman::OutputProcessor < Ruby2Ruby
include Brakeman::Util
+ def initialize *args
+ super
+ @user_input = nil
+ end
+
#Copies +exp+ and then formats it.
def format exp, user_input = nil, &block
@user_input = user_input
@user_input_block = block
process(exp.deep_clone) || "[Format Error]"