Skip to content

Commit

Permalink
Skipping blank lines in automatic wordlist type recognition.
Browse files Browse the repository at this point in the history
  • Loading branch information
openbullet committed Oct 1, 2019
1 parent 81b60e6 commit 6fb466d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenBullet/Pages/Main/WordlistManager.xaml.cs
Expand Up @@ -148,7 +148,7 @@ private void wordlistListViewDrop(object sender, DragEventArgs e)
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);
Expand Down

0 comments on commit 6fb466d

Please sign in to comment.