Skip to content

Commit 1ce9aed

Browse files
committed
parenthesis for condition expression
1 parent fd16c1c commit 1ce9aed

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/exploits/unix/webapp/sugarcrm_unserialize_exec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ def exploit
9494
},
9595
'data' => data
9696
})
97-
98-
if res.nil? || res.headers['Location'] && res.headers['Location'].include?('action=Login') || res.get_cookies.empty?
97+
if res.nil? || (res.headers['Location'] && res.headers['Location'].include?('action=Login')) || res.get_cookies.empty?
9998
fail_with(Failure::NoAccess, "#{peer} - Login failed with \"#{username}:#{password}\"")
10099
end
101100

0 commit comments

Comments
 (0)