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:
authorDaniel Kesselberg <mail@danielkesselberg.de>2021-08-20 12:45:33 +0300
committerDaniel Kesselberg <mail@danielkesselberg.de>2021-08-24 11:27:58 +0300
commitb1a8520f01b83a976c51b26be94007603d06da85 (patch)
tree25c26c59be41fe0a1c9769c5b73dc14da148b5d8 /lib
parent1408b26157285bab7222b315b1a9641cdc4ecb1b (diff)
Handle unlimited file size properly in propfind plugin.
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/Sabre/PropfindPlugin.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Sabre/PropfindPlugin.php b/lib/Sabre/PropfindPlugin.php
index ab51e5d..23871a6 100644
--- a/lib/Sabre/PropfindPlugin.php
+++ b/lib/Sabre/PropfindPlugin.php
@@ -63,7 +63,8 @@ class PropfindPlugin extends ServerPlugin {
return;
}
- if ($sourceNode->getSize() > $this->appConfig->getAvMaxFileSize()) {
+ $avMaxFileSize = $this->appConfig->getAvMaxFileSize();
+ if ($avMaxFileSize > -1 && $sourceNode->getSize() > $avMaxFileSize) {
$this->eventDispatcher->dispatch(
ScanStateEvent::class,
new ScanStateEvent(false)