path could be nil but only checked using empty?. Defaulting value to ''

git-svn-id: file:///home/svn/framework3/trunk@13979 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Wei Chen 2011-10-17 16:35:53 +00:00
parent d204f4027b
commit 6e3b36e142
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class Metasploit3 < Msf::Post
register_options(
[
OptString.new('PATH', [ true, 'Directory to begin search from' ]),
OptString.new('PATH', [ true, 'Directory to begin search from', '']),
OptEnum.new('FILTER', [ false, 'Filter to limit results by', 'NA', [ 'NA', 'R', 'W', 'RW' ]]),
OptInt.new('DEPTH', [ true, 'Depth to drill down into subdirs, O = no limit',0]),
], self.class)