diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2024-01-17 13:15:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-17 13:15:27 +0100 |
commit | 831c144213f1dc2b7e48d10d56cea6854398f9c8 (patch) | |
tree | 2db2027b2b03a2a20e8ba1c307e8a2a0d1e22727 /core | |
parent | 78a194c0997f62457ce5b2cb1d1d6ee04fda363d (diff) | |
parent | 9c0d99f80beaa34c3bfa783f4436c817a4a7043e (diff) | |
download | nextcloud-server-831c144213f1dc2b7e48d10d56cea6854398f9c8.tar.gz nextcloud-server-831c144213f1dc2b7e48d10d56cea6854398f9c8.zip |
Merge pull request #42865 from nextcloud/backport/42862/stable27
[stable27] fix(manifest): Check if app exists instead of accessing null as an array
Diffstat (limited to 'core')
-rw-r--r-- | core/templates/layout.guest.php | 2 | ||||
-rw-r--r-- | core/templates/layout.public.php | 2 | ||||
-rw-r--r-- | core/templates/layout.user.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php index 7a741d33a74..f24d3266274 100644 --- a/core/templates/layout.guest.php +++ b/core/templates/layout.guest.php @@ -20,7 +20,7 @@ p($theme->getTitle()); <link rel="icon" href="<?php print_unescaped(image_path('core', 'favicon.ico')); /* IE11+ supports png */ ?>"> <link rel="apple-touch-icon" href="<?php print_unescaped(image_path('core', 'favicon-touch.png')); ?>"> <link rel="mask-icon" sizes="any" href="<?php print_unescaped(image_path('core', 'favicon-mask.svg')); ?>" color="<?php p($theme->getColorPrimary()); ?>"> - <link rel="manifest" href="<?php print_unescaped(image_path('core', 'manifest.json')); ?>"> + <link rel="manifest" href="<?php print_unescaped(image_path('core', 'manifest.json')); ?>" crossorigin="use-credentials"> <?php emit_css_loading_tags($_); ?> <?php emit_script_loading_tags($_); ?> <?php print_unescaped($_['headers']); ?> diff --git a/core/templates/layout.public.php b/core/templates/layout.public.php index e5329716cc7..2c55240598c 100644 --- a/core/templates/layout.public.php +++ b/core/templates/layout.public.php @@ -21,7 +21,7 @@ p($theme->getTitle()); <link rel="apple-touch-icon" href="<?php print_unescaped(image_path($_['appid'], 'favicon-touch.png')); ?>"> <link rel="apple-touch-icon-precomposed" href="<?php print_unescaped(image_path($_['appid'], 'favicon-touch.png')); ?>"> <link rel="mask-icon" sizes="any" href="<?php print_unescaped(image_path($_['appid'], 'favicon-mask.svg')); ?>" color="<?php p($theme->getColorPrimary()); ?>"> - <link rel="manifest" href="<?php print_unescaped(image_path($_['appid'], 'manifest.json')); ?>"> + <link rel="manifest" href="<?php print_unescaped(image_path($_['appid'], 'manifest.json')); ?>" crossorigin="use-credentials"> <?php emit_css_loading_tags($_); ?> <?php emit_script_loading_tags($_); ?> <?php print_unescaped($_['headers']); ?> diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php index aebcda5c849..5d5b4164971 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -37,7 +37,7 @@ p($theme->getTitle()); <link rel="apple-touch-icon" href="<?php print_unescaped(image_path($_['appid'], 'favicon-touch.png')); ?>"> <link rel="apple-touch-icon-precomposed" href="<?php print_unescaped(image_path($_['appid'], 'favicon-touch.png')); ?>"> <link rel="mask-icon" sizes="any" href="<?php print_unescaped(image_path($_['appid'], 'favicon-mask.svg')); ?>" color="<?php p($theme->getColorPrimary()); ?>"> - <link rel="manifest" href="<?php print_unescaped(image_path($_['appid'], 'manifest.json')); ?>"> + <link rel="manifest" href="<?php print_unescaped(image_path($_['appid'], 'manifest.json')); ?>" crossorigin="use-credentials"> <?php emit_css_loading_tags($_); ?> <?php emit_script_loading_tags($_); ?> <?php print_unescaped($_['headers']); ?> |