Catch nil first before do .empty?

git-svn-id: file:///home/svn/framework3/trunk@13978 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Wei Chen 2011-10-17 15:59:57 +00:00
parent 87ec1c390e
commit d204f4027b
1 changed files with 1 additions and 1 deletions

View File

@ -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?)