Mail review stage 7a: mail passwords, the OAuth client secret and the mail tokens are stored encrypted with a key from config.php's backup key, kept as typed only when there is no key, with a warning in Admin > Settings > Mail when they can't be read (database 4.3.1); pictures from other sites in client email are held back on a ticket, its quick look and its work order until Show pictures is clicked; the sign-in page no longer loads the mail server's password; 26.12.3 changelog

This commit is contained in:
johnnyq
2026-11-30 21:34:43 -05:00
parent 6cec0b8574
commit b3ba5d7275
21 changed files with 339 additions and 65 deletions

View File

@@ -70,7 +70,8 @@ if (isset($_GET['ticket_id'])) {
$ticket_category = intval($ticket['ticket_category']);
$ticket_category_display = escapeHtml($ticket['category_name']);
$ticket_subject = escapeHtml($ticket['ticket_subject']);
$ticket_details = $purifier->purify($ticket['ticket_details']);
// Pictures from other sites held back until Show pictures (functions/ticket_pictures.php)
$ticket_details = ticketHtmlForAgents($purifier, $ticket['ticket_details']);
$ticket_priority = escapeHtml($ticket['ticket_priority']);
$ticket_billable = intval($ticket['ticket_billable']);
$ticket_scheduled_for = escapeHtml($ticket['ticket_schedule']);
@@ -774,6 +775,9 @@ if (isset($_GET['ticket_id'])) {
</form>
<?php } ?>
<!-- Pictures from other sites, hidden - shown with a click (functions/ticket_pictures.php, js/app.js) -->
<?= ticketRemoteImagesNote() ?>
<!-- The original request -->
<div class="card mb-3">
<div class="card-header px-3 py-2">
@@ -1079,7 +1083,7 @@ if (isset($_GET['ticket_id'])) {
foreach ($ticket_reply_rows as $reply_row) {
$ticket_reply_id = intval($reply_row['ticket_reply_id']);
$ticket_reply = $purifier->purify($reply_row['ticket_reply']);
$ticket_reply = ticketHtmlForAgents($purifier, $reply_row['ticket_reply']);
$ticket_reply_type = escapeHtml($reply_row['ticket_reply_type']);
// A note that mentions you says so, and your name in it stands out
$reply_mentions_me = in_array(intval($session_user_id), $reply_mentions[$ticket_reply_id] ?? [], true);