Better pattern for #1692

This commit is contained in:
erwanlr
2021-12-18 18:16:54 +01:00
parent eaaefe2cf5
commit 035830d7bc
2 changed files with 9 additions and 1 deletions

View File

@@ -59,7 +59,7 @@ module WPScan
#
# @return [ String, nil ] The best version number detected from the changelog section
def from_changelog_section(body)
extracted_versions = body.scan(/=+\s+(?:v(?:ersion)?\s*)?([0-9.-]+)[^=]*=+[\r\n]/i)
extracted_versions = body.scan(/^=+\s+(?:v(?:ersion)?\s*)?([0-9.-]+)[^=]*=+$/i)
return if extracted_versions.nil? || extracted_versions.empty?

View File

@@ -31,6 +31,14 @@ Install via the WordPress admin or...
== Frequently Asked Questions ==
== test ==
1.2
==
== test ==
1.3
bb =
= I got locked out, what do I do? =
Simple answer: wait. The lockdown will clear in the time you specified, just visit the site again later.