Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_antivirus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-02-17 16:14:15 +0300
committerRobin Appelman <robin@icewind.nl>2021-02-17 19:36:11 +0300
commit53b9ca2c20fe702d9e15560eaa96cd85cb910efe (patch)
treea05fcb13fc66ec78d909e4e3c32bc0de73bb8ad1 /lib
parentca842a8f21f4af8648f7db9ce9cff291250f3726 (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.php2
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);