X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Foptions_order.php;h=bf4b8993280f736166793d18730efb6e74780767;hb=353d074afac6827c90f4bb03e846c5e453d3b5b1;hp=02cbf19e66c7b94ced4cea55c50ac612b7a87e57;hpb=546d6debcb2172f29718cf6c02a6f0fcce83a3c1;p=squirrelmail.git diff --git a/src/options_order.php b/src/options_order.php index 02cbf19e..bf4b8993 100644 --- a/src/options_order.php +++ b/src/options_order.php @@ -4,13 +4,16 @@ * * Displays messagelist column order options * - * @copyright © 1999-2007 The SquirrelMail Project Team + * @copyright 1999-2018 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail * @subpackage prefs */ +/** This is the options_order page */ +define('PAGE_NAME', 'options_order'); + /** * Include the SquirrelMail initialization file. */ @@ -28,7 +31,7 @@ if (sqgetGlobalVar('num', $num, SQ_GET)) { if (!sqgetGlobalVar('method', $method)) { $method = ''; } else { - $method = htmlspecialchars($method); + $method = sm_encode_html_special_chars($method); } if (!sqgetGlobalVar('positions', $pos, SQ_GET)) { $pos = 0; @@ -43,7 +46,7 @@ if (!sqgetGlobalVar('account', $account, SQ_GET)) { } if (sqgetGlobalVar('mailbox', $mailbox, SQ_GET)) { - $aMailboxPrefs = unserialize(getPref($data_dir, $username, "pref_".$iAccount.'_'.urldecode($mailbox))); + $aMailboxPrefs = unserialize(getPref($data_dir, $username, "pref_".$iAccount.'_'.$mailbox)); if (isset($aMailboxPrefs[MBX_PREF_COLUMNS])) { $index_order = $aMailboxPrefs[MBX_PREF_COLUMNS]; } @@ -161,4 +164,3 @@ $oTemplate->assign('addField_action', $PHP_SELF); $oTemplate->display('options_order.tpl'); $oTemplate->display('footer.tpl'); -?>