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>
pull/44408/head
Ferdinand Thiessen 2 months ago
parent 4121b841de
commit 03dbbc90be
No known key found for this signature in database
GPG Key ID: 45FAE7268762B400

@ -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

Loading…
Cancel
Save