Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2022-03-08 15:47:52 +0300
committerGitHub <noreply@github.com>2022-03-08 15:47:52 +0300
commit227a0950d0d595c293b367f5dbe45808a3fa2ed8 (patch)
treecf515db01da4392ed25c7cd620a9078a5bcf100a
parent36860214f8e960cf53a736d2a7342c612c53870b (diff)
parent4910724803d565547edc366dbd852202aebfb280 (diff)
Merge pull request #31437 from nextcloud/backport/31415/stable23
[stable23] Fix "Nextcloud is not allowed to use the OPcache API" warning
-rw-r--r--apps/settings/lib/Controller/CheckSetupController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings/lib/Controller/CheckSetupController.php b/apps/settings/lib/Controller/CheckSetupController.php
index ebd31b3ec53..1809a47ff44 100644
--- a/apps/settings/lib/Controller/CheckSetupController.php
+++ b/apps/settings/lib/Controller/CheckSetupController.php
@@ -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;
}