From 0ebb00d01dfdbcae670b1253ded83031fdb684bb Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Sat, 13 May 2023 09:56:47 +0200 Subject: fix: Do not attempt to use l10n files as sources for combined js files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/private/Template/JSResourceLocator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/Template/JSResourceLocator.php') 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; } -- cgit v1.2.3