mirror of
https://github.com/nextcloud/server.git
synced 2026-07-02 06:31:25 -04:00
Merge pull request #31437 from nextcloud/backport/31415/stable23
[stable23] Fix "Nextcloud is not allowed to use the OPcache API" warning
This commit is contained in:
commit
227a0950d0
1 changed files with 1 additions and 1 deletions
|
|
@ -482,7 +482,7 @@ Raw output
|
|||
// 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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue