From 03dbbc90bef1583289bbafe8e5790048729f919d Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Fri, 22 Mar 2024 14:51:02 +0100 Subject: [PATCH] fix(JSRecourceLocator): Add missing slash after server root The `OC::$SERVERROOT` is always returned without a trailing slash, so we need to add a slash between server root and apps directory. Signed-off-by: Ferdinand Thiessen --- lib/private/Template/JSResourceLocator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Template/JSResourceLocator.php b/lib/private/Template/JSResourceLocator.php index c73b3efe997..b90d66417e0 100644 --- a/lib/private/Template/JSResourceLocator.php +++ b/lib/private/Template/JSResourceLocator.php @@ -52,7 +52,7 @@ class JSResourceLocator extends ResourceLocator { $app = substr($script, 0, strpos($script, '/')); $scriptName = basename($script); // Get the app root path - $appRoot = $this->serverroot . 'apps/'; + $appRoot = $this->serverroot . '/apps/'; $appWebRoot = null; try { // We need the dir name as getAppPath appends the appid