Apply fix by David, thx!

git-svn-id: file:///home/svn/framework3/trunk@13975 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
Wei Chen
2011-10-17 15:08:39 +00:00
parent 0304702b14
commit 7dbf2e3fcd
@@ -271,7 +271,7 @@ class Metasploit3 < Msf::Exploit::Remote
# Returns the configured (or random, if not configured) URI path
#
def resource_uri
path = datastore['URIPATH'] || random_uri
path = datastore['URIPATH'] || rand_text_alphanumeric(8+rand(8))
path = '/' + path if path !~ /^\//
datastore['URIPATH'] = path
return path