From 1c7963149e97332c83fbe1d635c4590869766660 Mon Sep 17 00:00:00 2001 From: nichogenius Date: Wed, 26 Jul 2017 03:09:47 -0600 Subject: [PATCH] Bug fix for last commit comment and empty line filters were in the wrong place --- scan.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scan.php b/scan.php index 25762dc..e86eecb 100644 --- a/scan.php +++ b/scan.php @@ -182,13 +182,13 @@ class MalwareScanner if (!$found) { $patterns = $this->loadPatterns(dirname(__FILE__) . '/patterns_re.txt'); - if (!$toSearch) { - continue; - } - if ($toSearch[0] === '#') { - continue; - } foreach ($patterns as $toSearch) { + if (!$toSearch) { + continue; + } + if ($toSearch[0] === '#') { + continue; + } if (preg_match('/' . $toSearch . '/is', $fileContent)) { $found = true; break;