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
diff options
context:
space:
mode:
-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);