Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasbecvar committed Jun 24, 2022
1 parent 37a808a commit 3416cee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/xyz/becvar/websitescanner/SiteScanner.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void fileSystemScan(String url) {
Logger.log(file + ":" + url + "/" + line + " code: " + new String(String.valueOf(con.getResponseCode())));
file++;
//Save to log file if response code not 404, 403, 400
if (con.getResponseCode() != 404 && con.getResponseCode() != 400 && con.getResponseCode() != 403) {
if (con.getResponseCode() != 404 && con.getResponseCode() != 400 && con.getResponseCode() != 403 && con.getResponseCode() != 301) {
foundFiles++;
fileUtils.saveMessageLog(url + "/" + line + " - " + new String(String.valueOf(con.getResponseCode())), "scanned_logs/" + validator.urlStrip(url) + ".log");
}
Expand Down

0 comments on commit 3416cee

Please sign in to comment.