Class: TaintedLove::Validator::ErbEval

Inherits:
Base
  • Object
show all
Defined in:
lib/tainted_love/validator/erb_eval.rb

Instance Method Summary collapse

Methods inherited from Base

validators

Instance Method Details

#remove?(warning) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
9
10
# File 'lib/tainted_love/validator/erb_eval.rb', line 6

def remove?(warning)
  if Object.const_defined?('Rails') || Object.const_defined?('ERB')
    return true if warning.tainted_input['_erbout']
  end
end