From b7942d6874bf760d3343cf3b3f84e412b4dc559e Mon Sep 17 00:00:00 2001 From: nichogenius Date: Tue, 15 Aug 2017 12:04:59 -0600 Subject: [PATCH] preg_match 's' flag changed to 'm' the 's' flag tells preg_match to operate in multi-line mode. the 'm' flag does the same, but allows line begin and ends to still be matched which is useful in some cases. --- scan.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scan.php b/scan.php index a9715a9..de3fa94 100644 --- a/scan.php +++ b/scan.php @@ -206,7 +206,7 @@ class MalwareScanner if ($toSearch[0] === '#') { continue; } - if (preg_match('/' . $toSearch . '/is', $fileContent)) { + if (preg_match('/' . $toSearch . '/im', $fileContent)) { $found = true; break; }