Sha256: 05ae63b4b33d56a23db87412fbce2c6b66f41b567c06858dab38633eb253324d
Contents?: true
Size: 987 Bytes
Versions: 5
Compression:
Stored size: 987 Bytes
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 XML module Capabilities # Extends {Arachni::Element::Capabilities::Inputtable} with {XML}-specific # functionality. # # @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com> module Inputtable include Arachni::Element::Capabilities::Inputtable INVALID_INPUT_DATA = [ "\0" ] def valid_input_data?( data ) !INVALID_INPUT_DATA.find { |c| data.include? c } end # @param [String] name # Input name. # # @return [Bool] # `true` if the `name` is a valid CSS path for the XML {#source}, # `false` otherwise. def valid_input_name?( name ) @inputs.include? name end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems