From 57ec5d55c3e501a84b622be6f3b0d8a17e42214c Mon Sep 17 00:00:00 2001 From: roundcube Date: Wed, 2 Nov 2005 22:43:55 +0000 Subject: Added more XSS protection (Bug #1308236) and some visual enhancements git-svn-id: https://svn.roundcube.net/trunk@73 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/steps/mail/func.inc | 51 ++++++++++++++++++++------- roundcubemail/program/steps/mail/sendmail.inc | 11 +++--- 2 files changed, 44 insertions(+), 18 deletions(-) (limited to 'roundcubemail/program/steps') diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc index 7a6b6ffd3..04196541b 100644 --- a/roundcubemail/program/steps/mail/func.inc +++ b/roundcubemail/program/steps/mail/func.inc @@ -41,6 +41,13 @@ if (strlen($_GET['_page'])) } +// set default sort col/order to session +if (!isset($_SESSION['sort_col'])) + $_SESSION['sort_col'] = $CONFIG['message_sort_col']; +if (!isset($_SESSION['sort_order'])) + $_SESSION['sort_order'] = $CONFIG['message_sort_order']; + + // define url for getting message parts if (strlen($_GET['_uid'])) $GET_URL = sprintf('%s&_action=get&_mbox=%s&_uid=%d', $COMM_PATH, $IMAP->get_mailbox_name(), $_GET['_uid']); @@ -147,7 +154,7 @@ function rcmail_build_folder_tree(&$arrFolders, $folder, $delm='/', $path='') // return html for a structured list