mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-27 09:19:15 +08:00
Handle mobileconfig display names with special characters
If the account display name contained special characters like & the mobileconfig would fail to import on the iOS device.
This commit is contained in:
parent
b09fab9125
commit
472a99ff00
@ -22,7 +22,7 @@ try {
|
||||
$stmt = $pdo->prepare("SELECT `name` FROM `mailbox` WHERE `username`= :username");
|
||||
$stmt->execute(array(':username' => $email));
|
||||
$MailboxData = $stmt->fetch(PDO::FETCH_ASSOC);
|
||||
$displayname = empty($MailboxData['name']) ? $email : $MailboxData['name'];
|
||||
$displayname = htmlspecialchars(empty($MailboxData['name']) ? $email : $MailboxData['name']);
|
||||
}
|
||||
catch(PDOException $e) {
|
||||
$displayname = $email;
|
||||
|
Loading…
Reference in New Issue
Block a user