mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Fix permittedPath comparison
Signed-off-by: Mickey Knox <mickey@netfreaks.org>
This commit is contained in:
parent
36860214f8
commit
4910724803
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