mirror of
https://github.com/scr34m/php-malware-scanner.git
synced 2026-06-16 12:30:35 +00:00
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:
2
scan.php
2
scan.php
@@ -206,7 +206,7 @@ class MalwareScanner
|
|||||||
if ($toSearch[0] === '#') {
|
if ($toSearch[0] === '#') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (preg_match('/' . $toSearch . '/is', $fileContent)) {
|
if (preg_match('/' . $toSearch . '/im', $fileContent)) {
|
||||||
$found = true;
|
$found = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user