diff options
author | Simon L <szaimen@e.mail.de> | 2022-03-08 13:47:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-08 13:47:52 +0100 |
commit | 227a0950d0d595c293b367f5dbe45808a3fa2ed8 (patch) | |
tree | cf515db01da4392ed25c7cd620a9078a5bcf100a | |
parent | 36860214f8e960cf53a736d2a7342c612c53870b (diff) | |
parent | 4910724803d565547edc366dbd852202aebfb280 (diff) | |
download | nextcloud-server-227a0950d0d595c293b367f5dbe45808a3fa2ed8.tar.gz nextcloud-server-227a0950d0d595c293b367f5dbe45808a3fa2ed8.zip |
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.php | 2 |
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; } |