diff options
author | Julius Härtl <jus@bitgrid.net> | 2023-05-13 09:56:47 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2023-05-15 08:29:05 +0200 |
commit | 0ebb00d01dfdbcae670b1253ded83031fdb684bb (patch) | |
tree | 4c661448d05159a03c7aacfc643b4eaea7806924 /lib | |
parent | 8bdb50fd507bfe68161ab98eba903872083ea4f3 (diff) | |
download | nextcloud-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.php | 2 |
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; } |