aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2023-02-07 15:59:01 +0100
committerGitHub <noreply@github.com>2023-02-07 15:59:01 +0100
commit82498bc50f176c84bbf62f02b3fc843daef3e844 (patch)
tree4c2bd98ad9ec0bad9f2b2e5688ab1892a8bd50d8
parent4e969ef8a28c8e71c22f499b738b33e695e4de90 (diff)
parent80071bd8b9ea403668e9317b62c265127c1f339a (diff)
downloadnextcloud-server-82498bc50f176c84bbf62f02b3fc843daef3e844.tar.gz
nextcloud-server-82498bc50f176c84bbf62f02b3fc843daef3e844.zip
Merge pull request #36524 from nextcloud/bugfix/36510/fix-uploading-to-public-shares
fix(sharing): Remove casting to int from INF
-rw-r--r--apps/files_sharing/lib/DefaultPublicShareTemplateProvider.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/DefaultPublicShareTemplateProvider.php b/apps/files_sharing/lib/DefaultPublicShareTemplateProvider.php
index cb0ba707c0c..9c95428d7b7 100644
--- a/apps/files_sharing/lib/DefaultPublicShareTemplateProvider.php
+++ b/apps/files_sharing/lib/DefaultPublicShareTemplateProvider.php
@@ -139,7 +139,7 @@ class DefaultPublicShareTemplateProvider implements IPublicShareTemplateProvider
if ($freeSpace < FileInfo::SPACE_UNLIMITED) {
$freeSpace = (int)max($freeSpace, 0);
} else {
- $freeSpace = (int)((INF > 0) ? INF: PHP_INT_MAX); // work around https://bugs.php.net/bug.php?id=69188
+ $freeSpace = (INF > 0) ? INF: PHP_INT_MAX; // work around https://bugs.php.net/bug.php?id=69188
}
$hideFileList = !($share->getPermissions() & Constants::PERMISSION_READ);