fixing bug for empty string.
This commit is contained in:
1 parent
37dfcc7bd3
commit
08b163dee8
1 file changed
+4
-2
@@ -86,8 +86,10 @@ class BruteForceAttacker
|
||||
|
||||
public static function bootUp($charsSaved)
|
||||
{
|
||||
foreach (str_split($charsSaved) as $char) {
|
||||
self::$charsRecorded[] = $char;
|
||||
if (!empty($charsSaved)) {
|
||||
foreach (str_split($charsSaved) as $char) {
|
||||
self::$charsRecorded[] = $char;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user