Method: Rex::Proto::Http::Handler::Erb#evaluate
- Defined in:
- lib/rex/proto/http/handler/erb.rb
#evaluate(erb, cli, request, response) ⇒ Object
Evaulates the ERB context in a specific binding context.
107 108 109 110 111 112 113 114 115 116 117 118 119 |
# File 'lib/rex/proto/http/handler/erb.rb', line 107 def evaluate(erb, cli, request, response) # If the thing that created this handler wanted us to use a callback # instead of the default behavior, then let's do that. if (opts['ErbCallback']) opts['ErbCallback'].call(erb, cli, request, response) else Module.new.module_eval { query_string = request.qstring = request. erb.result(binding) } end end |