Skip to content

Commit

Permalink
Fix some results not being added
Browse files Browse the repository at this point in the history
Not sure why it was using .Match.Count in the first place, or why it worked, but a small number of results were being skipped even if they were there.
  • Loading branch information
ThioJoe committed Aug 24, 2024
1 parent 90cdf38 commit 64a7720
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Super_God_Mode.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2977,7 +2977,7 @@ function Search-HiddenLinks {
foreach ($file in $files) {
$searchedFiles += $file.FullName
$fileResults = Get-ProtocolsInFile -protocolsList $URIsList -filePathToCheck $file.FullName -encodingMap $encodingMap
if ($fileResults -and $fileResults.Matches.Count -gt 0) {
if ($fileResults) {
$resultsAppx += $fileResults
}
$processedFiles++
Expand Down Expand Up @@ -3208,7 +3208,7 @@ function Search-HiddenLinks {
foreach ($file in $files) {
$searchedFiles2 += $file.FullName
$fileResults = Get-ProtocolsInFile -protocolsList $URIsList -filePathToCheck $file.FullName -encodingMap $encodingMap
if ($fileResults -and $fileResults.Matches.Count -gt 0) {
if ($fileResults) {
$resultsSecondary += $fileResults
}
$processedFiles++
Expand Down

0 comments on commit 64a7720

Please sign in to comment.