Module: Arachni::Element::Form::Capabilities::Submittable

Includes:
Capabilities::Submittable
Defined in:
lib/arachni/element/form/capabilities/submittable.rb

Overview

Extends Capabilities::Submittable with Arachni::Element::Form-specific functionality.

Author:

Instance Method Summary collapse

Methods included from Capabilities::Submittable

#action, #dup, #http, #http_request, #id, #initialize, #method, #method=, #platforms, #submit, #to_h

Instance Method Details

#action=(url) ⇒ Object

@@return (see Arachni::Element::Capabilities::Submittable#action=)


22
23
24
25
26
27
28
29
30
31
# File 'lib/arachni/element/form/capabilities/submittable.rb', line 22

def action=( url )
    if self.method == :get
        rewritten   = uri_parse( url ).rewrite
        self.inputs = rewritten.query_parameters.merge( self.inputs || {} )

        super rewritten.without_query
    else
        super url
    end
end