mirror of
https://github.com/epi052/feroxbuster.git
synced 2026-06-05 16:21:13 -03:00
Revert, did in wrong place.
This commit is contained in:
@@ -191,14 +191,9 @@ impl<'a> Extractor<'a> {
|
||||
// this is the expected error that happens when we try to parse a url fragment
|
||||
// ex: Url::parse("/login") -> Err("relative URL without a base")
|
||||
// while this is technically an error, these are good results for us
|
||||
let absolute_path = format!("{}{}", resp_url.path(), link);
|
||||
if e.to_string().contains("relative URL without a base") {
|
||||
if self.add_all_sub_paths(&absolute_path, &mut links).is_err() {
|
||||
log::warn!(
|
||||
"could not add sub-paths from {} to {:?}",
|
||||
absolute_path,
|
||||
links
|
||||
);
|
||||
if self.add_all_sub_paths(link, &mut links).is_err() {
|
||||
log::warn!("could not add sub-paths from {} to {:?}", link, links);
|
||||
}
|
||||
} else {
|
||||
// unexpected error has occurred
|
||||
@@ -503,14 +498,9 @@ impl<'a> Extractor<'a> {
|
||||
// this is the expected error that happens when we try to parse a url fragment
|
||||
// ex: Url::parse("/login") -> Err("relative URL without a base")
|
||||
// while this is technically an error, these are good results for us
|
||||
let absolute_path = format!("{}{}", resp_url.path(), link);
|
||||
if e.to_string().contains("relative URL without a base") {
|
||||
if self.add_all_sub_paths(&absolute_path, links).is_err() {
|
||||
log::warn!(
|
||||
"could not add sub-paths from {} to {:?}",
|
||||
absolute_path,
|
||||
links
|
||||
);
|
||||
if self.add_all_sub_paths(link, links).is_err() {
|
||||
log::warn!("could not add sub-paths from {} to {:?}", link, links);
|
||||
}
|
||||
} else {
|
||||
// unexpected error has occurred
|
||||
|
||||
Reference in New Issue
Block a user