diff options
author | Mickey Knox <mickey@netfreaks.org> | 2022-03-02 22:35:04 +0100 |
---|---|---|
committer | Simon L. (Rebase PR Action) <szaimen@e.mail.de> | 2022-03-08 10:17:55 +0000 |
commit | 4910724803d565547edc366dbd852202aebfb280 (patch) | |
tree | cf515db01da4392ed25c7cd620a9078a5bcf100a | |
parent | 36860214f8e960cf53a736d2a7342c612c53870b (diff) | |
download | nextcloud-server-4910724803d565547edc366dbd852202aebfb280.tar.gz nextcloud-server-4910724803d565547edc366dbd852202aebfb280.zip |
Fix permittedPath comparison
Signed-off-by: Mickey Knox <mickey@netfreaks.org>
-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; } |