Преглед изворни кода

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>
Ferdinand Thiessen пре 2 месеци
родитељ
комит
03dbbc90be
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      lib/private/Template/JSResourceLocator.php

+ 1 - 1
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