diff --git a/scan.php b/scan.php index 33c0738..ad4d9fc 100644 --- a/scan.php +++ b/scan.php @@ -709,14 +709,14 @@ class MalwareScanner //Returns true if the raw string exists in the file contents. private function scanFunc_STR(&$pattern, &$content) { - return strpos($content, $pattern); + return strpos($content, (string)$pattern); } //Performs raw string, case insensitive matching. //Returns true if the raw string exists in the file contents, ignoring case. private function scanFunc_STRI(&$pattern, &$content) { - return stripos($content, $pattern); + return stripos($content, (string)$pattern); } //Performs regular expression matching.