X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fchange_password%2Foptions.php;h=42d5cf877482047240315a691ca48d8fd2acc000;hb=5d86967a5bb99a3689b8bbf565ec33ec439ec1bf;hp=feca9422328bc26f8a79726846d61e30066493c3;hpb=1977ab5587905d225c6288141b82f7a6e3d29d02;p=squirrelmail.git diff --git a/plugins/change_password/options.php b/plugins/change_password/options.php index feca9422..42d5cf87 100644 --- a/plugins/change_password/options.php +++ b/plugins/change_password/options.php @@ -3,7 +3,7 @@ /** * options.php - Change Password HTML page * - * @copyright 2004-2010 The SquirrelMail Project Team + * @copyright 2004-2014 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package plugins @@ -56,7 +56,7 @@ if(sqgetGlobalVar('cpw_go', $cpw_go, SQ_POST)) { // security check sqgetGlobalVar('smtoken', $submitted_token, SQ_POST, ''); - sm_validate_security_token($submitted_token, 3600, TRUE); + sm_validate_security_token($submitted_token, -1, TRUE); /* perform basic checks */ $Messages = cpw_check_input(); @@ -81,7 +81,7 @@ do_hook('change_password_init', $null); if (isset($Messages) && count($Messages) > 0) { echo "\n"; foreach ($Messages as $line) { - echo htmlspecialchars($line) . "
\n"; + echo sm_encode_html_special_chars($line) . "
\n"; } echo "\n"; }