Syntax Changes

Cleaned up this statement a tiny bit
bug/bundler_fix
Nanomebia 2015-01-28 18:34:19 +08:00
parent fc3094ec9b
commit 27c412341f
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ class Metasploit3 < Msf::Exploit::Remote
'data' => data
})
if res.nil? || res.headers['Location'] =~ /action=Login/ || res.get_cookies.empty?
if res.nil? || res.headers['Location'].include? ('action=Login') || res.get_cookies.empty?
fail_with(Failure::NoAccess, "#{peer} - Login failed with \"#{username}:#{password}\"")
end