mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 01:00:50 -04:00
Merge pull request #36524 from nextcloud/bugfix/36510/fix-uploading-to-public-shares
fix(sharing): Remove casting to int from INF
This commit is contained in:
commit
82498bc50f
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue