Bugfix in Versiondetection. Without this Fix a very long string is detected as WPVersion and wpscan crashes on determing the vulns from XML because the string is used as xpath

This commit is contained in:
Christian Mehlmauer
2013-01-14 14:27:12 +01:00
parent 91187a0db3
commit 96d82405df
3 changed files with 7 additions and 1 deletions

View File

@@ -52,6 +52,11 @@ describe WpVersion do
@fixture = fixtures_dir + "/invalid_version.htm"
@expected = nil
end
it "should return 3.5" do
@fixture = fixtures_dir + "/3.5_minified.htm"
@expected = "3.5"
end
end
describe "#find_from_rss_generator" do