Skip to content

Commit

Permalink
Convert all subdomains to lowercase.
Browse files Browse the repository at this point in the history
  • Loading branch information
Edu4rdSHL committed Jun 12, 2020
1 parent b88c1c9 commit 812f19a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ fn search_subdomains(args: &mut args::Args) -> HashSet<String> {
sources::get_c99_subdomains(&url_api_c99, quiet_flag)
})
}
].into_iter().map(|j| j.join().unwrap()).collect::<Vec<_>>().into_iter().flatten().flatten().collect();
].into_iter().map(|j| j.join().unwrap()).collect::<Vec<_>>().into_iter().flatten().flatten().map(|sub| sub.to_lowercase()).collect();

all_subdomains.retain(|sub| misc::validate_subdomain(&base_target, &sub, args));
all_subdomains
Expand Down

0 comments on commit 812f19a

Please sign in to comment.