X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fchange_password%2Foptions.php;h=42d5cf877482047240315a691ca48d8fd2acc000;hb=5d86967a5bb99a3689b8bbf565ec33ec439ec1bf;hp=4400a015224c461e1298fc4e155c38bb80714403;hpb=202bcbcc2b67c7c153db1b09b608b62beeba0496;p=squirrelmail.git diff --git a/plugins/change_password/options.php b/plugins/change_password/options.php index 4400a015..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-2006 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 @@ -54,11 +54,9 @@ 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)) { - // SM14 code: use change_password gettext domain binding for 1.4.x - if (! check_sm_version(1,5,0)) { - bindtextdomain('change_password',SM_PATH . 'locale'); - textdomain('change_password'); - } + // security check + sqgetGlobalVar('smtoken', $submitted_token, SQ_POST, ''); + sm_validate_security_token($submitted_token, -1, TRUE); /* perform basic checks */ $Messages = cpw_check_input(); @@ -67,23 +65,11 @@ if(sqgetGlobalVar('cpw_go', $cpw_go, SQ_POST)) { if(count($Messages) == 0) { $Messages = cpw_do_change(); } - - // SM14 code: use change_password gettext domain binding for 1.4.x - if (! check_sm_version(1,5,0)) { - bindtextdomain('squirrelmail',SM_PATH . 'locale'); - textdomain('squirrelmail'); - } } -displayPageHeader($color, 'None'); - -// SM14 code: use change_password gettext domain binding for 1.4.x -if (! check_sm_version(1,5,0)) { - bindtextdomain('change_password',SM_PATH . 'locale'); - textdomain('change_password'); -} +displayPageHeader($color); -do_hook('change_password_init'); +do_hook('change_password_init', $null); ?>
@@ -95,13 +81,14 @@ do_hook('change_password_init'); 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"; } ?> + @@ -123,4 +110,4 @@ if (isset($Messages) && count($Messages) > 0) {
- \ No newline at end of file +