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/44413/head
Ferdinand Thiessen 2024-03-22 14:51:02 +07:00 committed by Josh
parent 724a62daee
commit cee151a14f
1 changed files with 1 additions and 1 deletions

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