summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2022-03-08 16:29:13 +0100
committerGitHub <noreply@github.com>2022-03-08 16:29:13 +0100
commitec4280eda06168ea02783760591cd6d3acd2701a (patch)
treebc9196964b7949f3c720e5e40b74b55cc60e8964
parente8872f01ae850bcbf66220beba44463f68e3d673 (diff)
parente8cf1a87599abf48d22042e79a0d61910935ee42 (diff)
downloadnextcloud-server-ec4280eda06168ea02783760591cd6d3acd2701a.tar.gz
nextcloud-server-ec4280eda06168ea02783760591cd6d3acd2701a.zip
Merge pull request #31493 from nextcloud/bugfix/noid/app-script-main
-rw-r--r--lib/private/Template/JSResourceLocator.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Template/JSResourceLocator.php b/lib/private/Template/JSResourceLocator.php
index 1421e28033a..bf84e1ae958 100644
--- a/lib/private/Template/JSResourceLocator.php
+++ b/lib/private/Template/JSResourceLocator.php
@@ -74,7 +74,7 @@ class JSResourceLocator extends ResourceLocator {
|| $this->cacheAndAppendCombineJsonIfExist($this->serverroot, $script.'.json')
|| $this->appendIfExist($this->serverroot, $theme_dir.'core/'.$script.'.js')
|| $this->appendIfExist($this->serverroot, 'core/'.$script.'.js')
- || $this->appendIfExist($this->serverroot, "dist/core-$scriptName.js")
+ || (strpos($scriptName, '/') === -1 && $this->appendIfExist($this->serverroot, "dist/core-$scriptName.js"))
|| $this->cacheAndAppendCombineJsonIfExist($this->serverroot, 'core/'.$script.'.json')
) {
return;