aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2023-05-13 09:56:47 +0200
committerJulius Härtl <jus@bitgrid.net>2023-05-15 08:29:05 +0200
commit0ebb00d01dfdbcae670b1253ded83031fdb684bb (patch)
tree4c661448d05159a03c7aacfc643b4eaea7806924 /lib
parent8bdb50fd507bfe68161ab98eba903872083ea4f3 (diff)
downloadnextcloud-server-0ebb00d01dfdbcae670b1253ded83031fdb684bb.tar.gz
nextcloud-server-0ebb00d01dfdbcae670b1253ded83031fdb684bb.zip
fix: Do not attempt to use l10n files as sources for combined js files
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-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 61611c69b0f..a84ef8968b9 100644
--- a/lib/private/Template/JSResourceLocator.php
+++ b/lib/private/Template/JSResourceLocator.php
@@ -100,7 +100,7 @@ class JSResourceLocator extends ResourceLocator {
$app_path = realpath($app_path);
// check combined files
- if ($this->cacheAndAppendCombineJsonIfExist($app_path, $script.'.json', $app)) {
+ if (!str_starts_with($script, 'l10n/') && $this->cacheAndAppendCombineJsonIfExist($app_path, $script.'.json', $app)) {
return;
}