Updated to not convert quotes
I missed using ENT_NOQUOTES since XML only needs & and <> to be replaced in tags, spotted by @mkuronmaster
parent
472a99ff00
commit
12d46cf072
|
@ -22,7 +22,7 @@ try {
|
||||||
$stmt = $pdo->prepare("SELECT `name` FROM `mailbox` WHERE `username`= :username");
|
$stmt = $pdo->prepare("SELECT `name` FROM `mailbox` WHERE `username`= :username");
|
||||||
$stmt->execute(array(':username' => $email));
|
$stmt->execute(array(':username' => $email));
|
||||||
$MailboxData = $stmt->fetch(PDO::FETCH_ASSOC);
|
$MailboxData = $stmt->fetch(PDO::FETCH_ASSOC);
|
||||||
$displayname = htmlspecialchars(empty($MailboxData['name']) ? $email : $MailboxData['name']);
|
$displayname = htmlspecialchars(empty($MailboxData['name']) ? $email : $MailboxData['name'], ENT_NOQUOTES);
|
||||||
}
|
}
|
||||||
catch(PDOException $e) {
|
catch(PDOException $e) {
|
||||||
$displayname = $email;
|
$displayname = $email;
|
||||||
|
|
Loading…
Reference in New Issue