Skip to content

Commit

Permalink
non-utf8 lines in wordlist skipped instead of erroring
Browse files Browse the repository at this point in the history
  • Loading branch information
epi052 committed Jan 24, 2021
1 parent 1fbda3f commit 9aafca9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "feroxbuster"
version = "1.12.3"
version = "1.12.4"
authors = ["Ben 'epi' Risher <epibar052@gmail.com>"]
license = "MIT"
edition = "2018"
Expand Down
5 changes: 4 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ fn get_unique_words_from_wordlist(path: &str) -> FeroxResult<Arc<HashSet<String>
let mut words = HashSet::new();

for line in reader.lines() {
let result = line?;
let result = match line {
Ok(l) => l,
Err(_) => continue,
};

if result.starts_with('#') || result.is_empty() {
continue;
Expand Down

0 comments on commit 9aafca9

Please sign in to comment.