summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2023-02-20 15:21:37 +0100
committerGitHub <noreply@github.com>2023-02-20 15:21:37 +0100
commit3204f97d5e8dfae6622883b5adfe7153f9991d60 (patch)
treee42149d56f0cf3a06961304cffa7e730992a9ff9 /lib
parent7858b8313ab098f8d0f7c0783f6051215d02eb56 (diff)
parent1cb50c5afa2e2bdfbbf1f90ff891c3d869473275 (diff)
downloadnextcloud-server-3204f97d5e8dfae6622883b5adfe7153f9991d60.tar.gz
nextcloud-server-3204f97d5e8dfae6622883b5adfe7153f9991d60.zip
Merge pull request #36759 from sgolovan/master
Fix integer overflow on 32-bit systems when testing free space for wr…
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Config.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Config.php b/lib/private/Config.php
index 7308a3769df..a9ecaf2c825 100644
--- a/lib/private/Config.php
+++ b/lib/private/Config.php
@@ -288,7 +288,7 @@ class Config {
// Never write file back if disk space should be too low
$df = disk_free_space($this->configDir);
$size = strlen($content) + 10240;
- if ($df !== false && (int)$df < $size) {
+ if ($df !== false && $df < (float)$size) {
throw new \Exception($this->configDir . " does not have enough space for writing the config file! Not writing it back!");
}