Support of Ruby 2.3 removed as its life ended

This commit is contained in:
erwanlr
2019-04-04 15:40:21 +01:00
parent 352286e497
commit 888779f81b
9 changed files with 11 additions and 19 deletions

View File

@@ -63,7 +63,7 @@ module WPScan
def webshot_enabled?
res = Browser.get(url, params: { webshot: 1, src: "http://#{default_allowed_domains.sample}" })
res.body =~ /WEBSHOT_ENABLED == true/ ? false : true
/WEBSHOT_ENABLED == true/.match?(res.body) ? false : true
end
# @return [ Array<String> ] The default allowed domains (between the 2.0 and 2.8.13)