diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2021-03-04 10:47:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-04 10:47:31 +0300 |
commit | 79576825a97ef8eaa721326eaaa0d0411075163c (patch) | |
tree | 27a329ffce433e6749cc1285b2ac091f8b66f2ee | |
parent | 67303c535a236de6d1286b14cd84c48194f2f3b9 (diff) | |
parent | 53b9ca2c20fe702d9e15560eaa96cd85cb910efe (diff) |
Merge pull request #189 from nextcloud/fix-static-logic
fix status handling of multi-block scans
-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); |