summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-09-12 09:26:04 +0200
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2022-09-12 13:20:09 +0000
commitc1953123fe0775152f78484f9449d8b54dc047cd (patch)
treeb1477736fc87ebd4fae532bf46b470479707c85f
parent01c0b31c73298beb3c9a2405ea400b68e0c41a8d (diff)
downloadnextcloud-server-c1953123fe0775152f78484f9449d8b54dc047cd.tar.gz
nextcloud-server-c1953123fe0775152f78484f9449d8b54dc047cd.zip
Fix quota type to int
Change the quota to int from float, since the quota is a number of bits and a bits can not be splitted. Fix #34010 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
-rw-r--r--lib/private/legacy/OC_Helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/legacy/OC_Helper.php b/lib/private/legacy/OC_Helper.php
index 6aa0b582c21..0dda07c0303 100644
--- a/lib/private/legacy/OC_Helper.php
+++ b/lib/private/legacy/OC_Helper.php
@@ -104,7 +104,7 @@ class OC_Helper {
public static function computerFileSize($str) {
$str = strtolower($str);
if (is_numeric($str)) {
- return (float)$str;
+ return (int)$str;
}
$bytes_array = [
@@ -131,7 +131,7 @@ class OC_Helper {
$bytes = round($bytes);
- return $bytes;
+ return (int)$bytes;
}
/**