diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2023-02-07 15:59:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-07 15:59:01 +0100 |
commit | 82498bc50f176c84bbf62f02b3fc843daef3e844 (patch) | |
tree | 4c2bd98ad9ec0bad9f2b2e5688ab1892a8bd50d8 | |
parent | 4e969ef8a28c8e71c22f499b738b33e695e4de90 (diff) | |
parent | 80071bd8b9ea403668e9317b62c265127c1f339a (diff) | |
download | nextcloud-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.php | 2 |
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); |