Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kolyandula committed May 3, 2016
1 parent e01bde0 commit 07620ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scanner/classes/MalwareDetector.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 07620ee

Please sign in to comment.