Sha256: f6565fb49b45d6d267a219f5a3fc3ea25c16ce5f2ce99cab46700e631458b782
Contents?: true
Size: 1.04 KB
Versions: 5
Compression:
Stored size: 1.04 KB
Contents
=begin Copyright 2010-2022 Ecsypno <http://www.ecsypno.com> This file is part of the Arachni Framework project and is subject to redistribution and commercial restrictions. Please see the Arachni Framework web site for more information on licensing and terms of use. =end module Arachni::Element class Link module Capabilities # Extends {Arachni::Element::Capabilities::Submittable} with {Link}-specific # functionality. # # @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com> module Submittable include Arachni::Element::Capabilities::Submittable # @note Will {Arachni::Options.rewrite} the `url`. # @note Will update the {#inputs} from the URL query. # # @param (see Arachni::Element::Capabilities::Submittable#action=) # # @return (see Arachni::Element::Capabilities::Submittable#action=) def action=( url ) rewritten = uri_parse( url ).rewrite self.inputs = rewritten.query_parameters.merge( self.inputs || {} ) super rewritten.without_query end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems