diff --git a/scan.php b/scan.php index e86eecb..dc9c142 100644 --- a/scan.php +++ b/scan.php @@ -173,8 +173,7 @@ class MalwareScanner if ($toSearch[0] === '#') { continue; } - $substrCount = substr_count($fileContent, $toSearch); - if ($substrCount > 0) { + if (strpos($fileContent, $toSearch) !== FALSE){ $found = true; break; }