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.
This commit is contained in:
nichogenius
2017-08-15 12:04:59 -06:00
committed by GitHub
parent 19589b8311
commit b7942d6874

View File

@@ -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;
}