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/mobileconfig.php b/mailcow/src/mailcow-dockerized/data/web/mobileconfig.php
index 44aaa30..c57c488 100644
--- a/mailcow/src/mailcow-dockerized/data/web/mobileconfig.php
+++ b/mailcow/src/mailcow-dockerized/data/web/mobileconfig.php
@@ -34,15 +34,15 @@
if (isset($_GET['only_email'])) {
$onlyEmailAccount = true;
- $description = 'IMAP';
+ $description = 'IMAP';
} else {
$onlyEmailAccount = false;
- $description = 'IMAP, CalDAV, CardDAV';
+ $description = 'IMAP, CalDAV, CardDAV';
}
if (isset($_GET['app_password'])) {
$app_password = true;
$description .= ' with application password';
-
+
if (strpos($_SERVER['HTTP_USER_AGENT'], 'iPad') !== FALSE)
$platform = 'iPad';
elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== FALSE)
@@ -51,8 +51,9 @@
$platform = 'Mac';
else
$platform = $_SERVER['HTTP_USER_AGENT'];
-
- $password = bin2hex(openssl_random_pseudo_bytes(16));
+
+ $password = password_generate();
+
$attr = array(
'app_name' => $platform,
'app_passwd' => $password,
@@ -64,6 +65,7 @@
$attr['protocols'][] = 'dav_access';
}
app_passwd("add", $attr);
+ $password = htmlspecialchars($password, ENT_NOQUOTES);
} else {
$app_password = false;
}