mirror of
https://github.com/openbullet/openbullet.git
synced 2023-10-21 07:33:42 -05:00
Skipping blank lines in automatic wordlist type recognition.
This commit is contained in:
@@ -148,7 +148,7 @@ namespace OpenBullet
|
||||
var wordlist = new Wordlist(Path.GetFileNameWithoutExtension(file), path, Globals.environment.WordlistTypes.First().Name, "");
|
||||
|
||||
// Get the first line
|
||||
var first = File.ReadLines(wordlist.Path).First();
|
||||
var first = File.ReadLines(wordlist.Path).First(l => !string.IsNullOrWhiteSpace(l));
|
||||
|
||||
// Set the correct wordlist type
|
||||
wordlist.Type = Globals.environment.RecognizeWordlistType(first);
|
||||
|
||||
Reference in New Issue
Block a user