mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-12 11:52:01 +01:00
make sure sets has something in it. lib/msf/core/exploit.rb sends this a nil if the user didn't specify anything
git-svn-id: file:///home/svn/framework3/trunk@10235 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
e42d2c1ef4
commit
0b8eebcace
@ -756,6 +756,8 @@ module Text
|
||||
buf = ''
|
||||
idx = 0
|
||||
offsets = []
|
||||
# Make sure there's something in sets even if we were given an explicit nil
|
||||
sets ||= [ UpperAlpha, LowerAlpha, Numerals ]
|
||||
|
||||
sets.length.times { offsets << 0 }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user