Updates rubocop dep

This commit is contained in:
erwanlr
2021-01-29 11:56:04 +01:00
parent f30255d6d8
commit fa3005f2b7
9 changed files with 11 additions and 10 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}" })
/WEBSHOT_ENABLED == true/.match?(res.body) ? false : true
!/WEBSHOT_ENABLED == true/.match?(res.body)
end
# @return [ Array<String> ] The default allowed domains (between the 2.0 and 2.8.13)