aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/lib
diff options
context:
space:
mode:
authorMickey Knox <mickey@netfreaks.org>2022-03-02 22:35:04 +0100
committerMickey Knox <mickey@netfreaks.org>2022-03-02 22:38:11 +0100
commitf63eb4261fd3f7591774b12a08a5e83d41f4bf36 (patch)
tree06a18a1babdbb7deab095c4b5eec92971294fb0d /apps/settings/lib
parent0f34bce344e0e639856dcc8f213e436fd0f9744c (diff)
downloadnextcloud-server-f63eb4261fd3f7591774b12a08a5e83d41f4bf36.tar.gz
nextcloud-server-f63eb4261fd3f7591774b12a08a5e83d41f4bf36.zip
Fix permittedPath comparison
Signed-off-by: Mickey Knox <mickey@netfreaks.org>
Diffstat (limited to 'apps/settings/lib')
-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 11900fad45b..52954d4193d 100644
--- a/apps/settings/lib/Controller/CheckSetupController.php
+++ b/apps/settings/lib/Controller/CheckSetupController.php
@@ -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;
}