- If you don't have any filters defined, and spam filters are disabled, no
point issuing a STATUS call on INBOX for the filters plugin.
- Added folder filtering controls to SMOPT_TYPE_FLDRLIST option widget.
+ - Security: Fixed possible XSS issue in search feature. Issue was
+ originally resolved in stable, but changes not migrated forward.
Version 1.5.0 - 2 February 2004
-------------------------------
$cur_mailbox = 'INBOX';
$biop = asearch_nz($biop_array[$crit_num]);
if (($query_display == '') || ($cur_mailbox != $last_mailbox)) {
- $mailbox_display = ' <b>' . asearch_get_mailbox_display($cur_mailbox) . '</b>';
+ $mailbox_display = ' <b>' . htmlspecialchars(asearch_get_mailbox_display($cur_mailbox)) . '</b>';
if ($query_display == '')
$biop_display = _("In");
else
function asearch_get_form_mailbox($imapConnection, &$boxes, $mailbox, $row_num = 0)
{
if (($mailbox != 'All Folders') && (!asearch_mailbox_exists($mailbox, $boxes))) {
- $missing = asearch_opt($mailbox, $mailbox, '[' . _("Missing") . '] ' . asearch_get_mailbox_display($mailbox));
+ $missing = asearch_opt($mailbox, $mailbox, '[' . _("Missing") . '] ' . htmlspecialchars(asearch_get_mailbox_display($mailbox)));
} else {
$missing = '';
}
$mailbox_display = imap_utf7_decode_local($mbx);
}
- echo '<br /><b><big>' . _("Folder:") . ' '. $mailbox_display . ' </big></b>';
+ echo '<br /><b><big>' . _("Folder:") . ' '. htmlspecialchars($mailbox_display) . ' </big></b>';
$oTemplate->display('message_list.tpl');
}
echo '</body></html>';
sqsession_register($mailbox_cache,'mailbox_cache');
-?>
\ No newline at end of file
+?>