git subrepo commit (merge) mailcow/src/mailcow-dockerized
subrepo:
subdir: "mailcow/src/mailcow-dockerized"
merged: "81fb18894"
upstream:
origin: "https://github.com/mailcow/mailcow-dockerized.git"
branch: "master"
commit: "4ca02ecee"
git-subrepo:
version: "0.4.6"
origin: "???"
commit: "???"
Update to upstream 2026-10. Local patches re-applied by hand
(no Unbound DNS for containers, IPv6 off by default, fake-MySQL
stubs in dockerapi, Postfix overrides, no .env symlink); dropped
the unused dovecot and clamd Dockerfile patches.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Change-Id: I2c2c194d1d436b841358685f5f94aef09eb19ae8
diff --git a/mailcow/src/mailcow-dockerized/data/web/inc/footer.inc.php b/mailcow/src/mailcow-dockerized/data/web/inc/footer.inc.php
index 61d81df..4ced152 100644
--- a/mailcow/src/mailcow-dockerized/data/web/inc/footer.inc.php
+++ b/mailcow/src/mailcow-dockerized/data/web/inc/footer.inc.php
@@ -12,7 +12,8 @@
$alerts = [];
if (is_array($alertbox_log_parser)) {
foreach ($alertbox_log_parser as $log) {
- $message = strtr($log['msg'], ["\n" => '', "\r" => '', "\t" => '<br>']);
+ $message = htmlspecialchars($log['msg'], ENT_QUOTES);
+ $message = strtr($message, ["\n" => '', "\r" => '', "\t" => '<br>']);
$alerts[trim($log['type'], '"')][] = trim($message, '"');
}
$alert = array_filter(array_unique($alerts));
@@ -25,23 +26,25 @@
// map tfa details for twig
$pending_tfa_authmechs = [];
-foreach($_SESSION['pending_tfa_methods'] as $authdata){
- $pending_tfa_authmechs[$authdata['authmech']] = false;
-}
-if (isset($pending_tfa_authmechs['webauthn'])) {
- $pending_tfa_authmechs['webauthn'] = true;
-}
-if (!isset($pending_tfa_authmechs['webauthn'])
- && isset($pending_tfa_authmechs['yubi_otp'])) {
- $pending_tfa_authmechs['yubi_otp'] = true;
-}
-if (!isset($pending_tfa_authmechs['webauthn'])
- && !isset($pending_tfa_authmechs['yubi_otp'])
- && isset($pending_tfa_authmechs['totp'])) {
- $pending_tfa_authmechs['totp'] = true;
-}
-if (isset($pending_tfa_authmechs['u2f'])) {
- $pending_tfa_authmechs['u2f'] = true;
+if (array_key_exists('pending_tfa_methods', $_SESSION)) {
+ foreach($_SESSION['pending_tfa_methods'] as $authdata){
+ $pending_tfa_authmechs[$authdata['authmech']] = false;
+ }
+ if (isset($pending_tfa_authmechs['webauthn'])) {
+ $pending_tfa_authmechs['webauthn'] = true;
+ }
+ if (!isset($pending_tfa_authmechs['webauthn'])
+ && isset($pending_tfa_authmechs['yubi_otp'])) {
+ $pending_tfa_authmechs['yubi_otp'] = true;
+ }
+ if (!isset($pending_tfa_authmechs['webauthn'])
+ && !isset($pending_tfa_authmechs['yubi_otp'])
+ && isset($pending_tfa_authmechs['totp'])) {
+ $pending_tfa_authmechs['totp'] = true;
+ }
+ if (isset($pending_tfa_authmechs['u2f'])) {
+ $pending_tfa_authmechs['u2f'] = true;
+ }
}
// globals
@@ -61,10 +64,14 @@
'pending_tfa_methods' => @$_SESSION['pending_tfa_methods'],
'pending_tfa_authmechs' => $pending_tfa_authmechs,
'pending_mailcow_cc_username' => @$_SESSION['pending_mailcow_cc_username'],
+ 'pending_tfa_setup' => !empty($_SESSION['pending_tfa_setup']),
+ 'pending_pw_update_modal' => !empty($_SESSION['pending_pw_update']),
'lang_footer' => json_encode($lang['footer']),
'lang_acl' => json_encode($lang['acl']),
'lang_tfa' => json_encode($lang['tfa']),
'lang_fido2' => json_encode($lang['fido2']),
+ 'lang_success' => json_encode($lang['success']),
+ 'lang_danger' => json_encode($lang['danger']),
'docker_timeout' => $DOCKER_TIMEOUT,
'session_lifetime' => (int)$SESSION_LIFETIME,
'csrf_token' => $_SESSION['CSRF']['TOKEN'],