more XSD checking

This commit is contained in:
Christian Mehlmauer
2013-01-21 22:18:12 +01:00
parent c2cdf97bee
commit 10616b18fc
7 changed files with 105 additions and 31 deletions

View File

@@ -124,7 +124,7 @@ class WpVersion < Vulnerable
def self.find_from_advanced_fingerprinting(options)
target_uri = options[:base_url]
# needed for rpsec tests
version_xml = options[:version_xml] || DATA_DIR + "/wp_versions.xml"
version_xml = options[:version_xml] || WP_VERSIONS_FILE
xml = Nokogiri::XML(File.open(version_xml)) do |config|
config.noblanks
end