diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-03-22 14:51:02 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-03-22 14:51:27 +0100 |
commit | 03dbbc90bef1583289bbafe8e5790048729f919d (patch) | |
tree | 50e7f189f1ec723ef4627c12fe1ab0b799073adc /lib/private | |
parent | 4121b841de5cdeb204c166f8f23f1621c00a9102 (diff) | |
download | nextcloud-server-03dbbc90bef1583289bbafe8e5790048729f919d.tar.gz nextcloud-server-03dbbc90bef1583289bbafe8e5790048729f919d.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>
Diffstat (limited to 'lib/private')
-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 |