mirror of
https://github.com/scr34m/php-malware-scanner.git
synced 2026-06-16 12:30:35 +00:00
Merge pull request #49 from gallogiuseppe/master
Set scan method to public to allow for direct scan of single files in library mode
This commit is contained in:
2
scan.php
2
scan.php
@@ -610,7 +610,7 @@ class MalwareScanner
|
||||
|
||||
//Loads target file contents for scanning
|
||||
//Initiates the multiple scan types by calling the scanLoop function
|
||||
private function scan($path)
|
||||
public function scan($path)
|
||||
{
|
||||
$this->stat['files_scanned']++;
|
||||
$fileContent = file_get_contents($path);
|
||||
|
||||
Reference in New Issue
Block a user