X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fchange_password%2Foptions.php;h=42d5cf877482047240315a691ca48d8fd2acc000;hb=5d86967a5bb99a3689b8bbf565ec33ec439ec1bf;hp=15b674ea7e18cdb03f2d90a65c0c70747765d64f;hpb=4b5049de2fa934c45599d6e4c74bf2bbee10d34d;p=squirrelmail.git diff --git a/plugins/change_password/options.php b/plugins/change_password/options.php index 15b674ea..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-2007 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 @@ -53,6 +53,11 @@ if (file_exists(SM_PATH . 'plugins/change_password/backend/'.$cpw_backend.'.php' /* the form was submitted, go for it */ if(sqgetGlobalVar('cpw_go', $cpw_go, SQ_POST)) { + + // security check + sqgetGlobalVar('smtoken', $submitted_token, SQ_POST, ''); + sm_validate_security_token($submitted_token, -1, TRUE); + /* perform basic checks */ $Messages = cpw_check_input(); @@ -62,7 +67,7 @@ if(sqgetGlobalVar('cpw_go', $cpw_go, SQ_POST)) { } } -displayPageHeader($color, 'None'); +displayPageHeader($color); do_hook('change_password_init', $null); ?> @@ -76,13 +81,14 @@ 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"; } ?> +