]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: Do not attempt to use l10n files as sources for combined js files 38237/head
authorJulius Härtl <jus@bitgrid.net>
Sat, 13 May 2023 07:56:47 +0000 (09:56 +0200)
committerJulius Härtl <jus@bitgrid.net>
Mon, 15 May 2023 06:29:05 +0000 (08:29 +0200)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
lib/private/Template/JSResourceLocator.php

index 61611c69b0f6f1f5193076a66be15ef8bade6f5e..a84ef8968b9b62dac22856eda3749c557495b8f5 100644 (file)
@@ -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;
                        }