diff options
author | Robin Appelman <robin@icewind.nl> | 2021-02-17 16:14:15 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2021-02-17 19:36:11 +0300 |
commit | 53b9ca2c20fe702d9e15560eaa96cd85cb910efe (patch) | |
tree | a05fcb13fc66ec78d909e4e3c32bc0de73bb8ad1 /lib | |
parent | ca842a8f21f4af8648f7db9ce9cff291250f3726 (diff) |
fix status handling of multi-block scans
only refuse to set the status if the existing status is `infected`
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Scanner/ExternalKaspersky.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Scanner/ExternalKaspersky.php b/lib/Scanner/ExternalKaspersky.php index 97bf129..09257e1 100644 --- a/lib/Scanner/ExternalKaspersky.php +++ b/lib/Scanner/ExternalKaspersky.php @@ -79,7 +79,7 @@ class ExternalKaspersky extends ScannerBase { ['app' => 'files_antivirus'] ); - if (trim($response) === 'CLEAN' && $this->status->getNumericStatus() == Status::SCANRESULT_CLEAN) { + if (trim($response) === 'CLEAN' && $this->status->getNumericStatus() != Status::SCANRESULT_INFECTED) { $this->status->setNumericStatus(Status::SCANRESULT_CLEAN); } else if (substr($response, 0, 11) === 'NON_SCANNED' && $this->status->getNumericStatus() != Status::SCANRESULT_INFECTED) { $this->status->setNumericStatus(Status::SCANRESULT_UNCHECKED); |