Skip to content

Commit

Permalink
Merge pull request #36524 from nextcloud/bugfix/36510/fix-uploading-t…
Browse files Browse the repository at this point in the history
…o-public-shares

fix(sharing): Remove casting to int from INF
  • Loading branch information
nickvergessen authored Feb 7, 2023
2 parents 4e969ef + 80071bd commit 82498bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function renderPage(IShare $share, string $token, string $path): Template
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);
Expand Down

0 comments on commit 82498bc

Please sign in to comment.