Catch nil first before do .empty?
git-svn-id: file:///home/svn/framework3/trunk@13978 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
87ec1c390e
commit
d204f4027b
|
@ -89,7 +89,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
end
|
||||
|
||||
# PHPURI overrides the PHPRFIDB list
|
||||
if (datastore['PHPURI'] and not datastore['PHPURI'].empty? and datastore['POSTDATA'].empty?)
|
||||
if (datastore['PHPURI'] and not datastore['PHPURI'].empty? and (datastore['POSTDATA'].nil? or datastore['POSTDATA'].empty?) )
|
||||
uris << datastore['PHPURI'].strip.gsub('XXpathXX', Rex::Text.to_hex(php_include_url, "%"))
|
||||
http_method = "GET"
|
||||
elsif (datastore['POSTDATA'] and not datastore['POSTDATA'].empty?)
|
||||
|
|
Loading…
Reference in New Issue