From 07620ee55a55bca939f0d08b6cf2a1878ac69279 Mon Sep 17 00:00:00 2001 From: Ruslan Date: Tue, 3 May 2016 17:12:00 +0400 Subject: [PATCH] fix https://github.com/antimalware/manul/issues/113 --- src/scanner/classes/MalwareDetector.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scanner/classes/MalwareDetector.inc.php b/src/scanner/classes/MalwareDetector.inc.php index 3afea64..ea2261e 100644 --- a/src/scanner/classes/MalwareDetector.inc.php +++ b/src/scanner/classes/MalwareDetector.inc.php @@ -370,10 +370,10 @@ function malwareScanRound() $offset += strlen($line) + 1; - $fileinfo = explode(' ', $line); + $p = strrpos($line, ' '); - $filePath = $fileinfo[0]; - $fileHash = $fileinfo[1]; + $filePath = substr($line, 0, $p); + $fileHash = substr($line, $p + 1); $snippet = ''; $fileExtension = pathinfo(basename($filePath), PATHINFO_EXTENSION);