mirror of
https://github.com/epi052/feroxbuster.git
synced 2026-06-07 18:21:13 -03:00
Update src/config/container.rs
use `strip_prefix`
This commit is contained in:
@@ -581,7 +581,7 @@ impl Configuration {
|
||||
}
|
||||
|
||||
if let Some(arg) = args.value_of("data") {
|
||||
if arg.starts_with("@") {
|
||||
if let Some(stripped) = arg.strip_prefix('@') {
|
||||
config.data =
|
||||
std::fs::read(&arg[1..]).unwrap_or_else(|e| report_and_exit(&e.to_string()));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user