Skip to content

Commit 37eaa62

Browse files
committed
Fix undefined method error
[FixRM rapid7#8346]
1 parent 9ca7a72 commit 37eaa62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/admin/oracle/osb_execqr3.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def run
4848
'method' => 'POST',
4949
}, 5)
5050

51-
if (res.headers['Set-Cookie'] and res.headers['Set-Cookie'].match(/PHPSESSID=(.*);(.*)/i))
51+
if (res and res.headers['Set-Cookie'] and res.headers['Set-Cookie'].match(/PHPSESSID=(.*);(.*)/i))
5252

5353
sessionid = res.headers['Set-Cookie'].split(';')[0]
5454

0 commit comments

Comments
 (0)