diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-03-22 14:51:02 +0100 |
---|---|---|
committer | Josh <josh.t.richards@gmail.com> | 2024-03-29 08:27:46 -0400 |
commit | cee151a14f775992efd66b6ee175e1de20c10f0e (patch) | |
tree | fd2a50c1d8cacd0035792b2f6ad29965fd5399e9 | |
parent | 724a62daeebeeb0508b7ce7195226aa0654dd97f (diff) | |
download | nextcloud-server-cee151a14f775992efd66b6ee175e1de20c10f0e.tar.gz nextcloud-server-cee151a14f775992efd66b6ee175e1de20c10f0e.zip |
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 <opensource@fthiessen.de>
-rw-r--r-- | lib/private/Template/JSResourceLocator.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 |