Skip to content

Commit

Permalink
Merge pull request #8 from mrdos010/patch-1
Browse files Browse the repository at this point in the history
Update find-potential-redirects-302-based.java
  • Loading branch information
genuinemoses authored Dec 11, 2023
2 parents 4b885ae + e366e40 commit 481022a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion response-filters/find-potential-redirects-302-based.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@

var response = requestResponse.response();
var bodyLength = response.body().toString().toLowerCase().replaceAll("<a.*</a>", "").length();
var numberofHrefs = response.body().countMatches("href=", false);
var numberOfHrefs = response.body().countMatches("href=", false);

return (bodyLength > 1000 || numberOfHrefs > 1);

0 comments on commit 481022a

Please sign in to comment.