mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Merge pull request #31415 from knox/fix-opcache-permitted-path
Fix "Nextcloud is not allowed to use the OPcache API" warning
This commit is contained in:
commit
fdf4024ccb
1 changed files with 1 additions and 1 deletions
|
|
@ -477,7 +477,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