Skip to content

Commit 9ca7a72

Browse files
committed
Fix undefined method error
[FixRM rapid7#8347]
1 parent 5993cbe commit 9ca7a72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/admin/oracle/osb_execqr2.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def run
5151
'method' => 'POST',
5252
}, 5)
5353

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

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

0 commit comments

Comments
 (0)