Skip to content

Commit

Permalink
Merge pull request #31437 from nextcloud/backport/31415/stable23
Browse files Browse the repository at this point in the history
[stable23] Fix "Nextcloud is not allowed to use the OPcache API" warning
  • Loading branch information
szaimen authored Mar 8, 2022
2 parents 3686021 + 4910724 commit 227a095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/settings/lib/Controller/CheckSetupController.php
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ protected function getOpcacheSetupRecommendations(): array {
// Check whether Nextcloud is allowed to use the OPcache API
$isPermitted = true;
$permittedPath = $this->iniGetWrapper->getString('opcache.restrict_api');
if (isset($permittedPath) && $permittedPath !== '' && !str_starts_with(\OC::$SERVERROOT, $permittedPath)) {
if (isset($permittedPath) && $permittedPath !== '' && !str_starts_with(\OC::$SERVERROOT, rtrim($permittedPath, '/'))) {
$isPermitted = false;
}

Expand Down

0 comments on commit 227a095

Please sign in to comment.