Merge pull request #2574 from emericklaw/mobileconfig-specialcharacters
Handle mobileconfig display names with special charactersmaster
commit
2d5e8a20ef
|
@ -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'], ENT_NOQUOTES);
|
||||
}
|
||||
catch(PDOException $e) {
|
||||
$displayname = $email;
|
||||
|
|
Loading…
Reference in New Issue