X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fchange_password%2Foptions.php;fp=plugins%2Fchange_password%2Foptions.php;h=05941d043f78f761a2dd5ad1a1fee7c10396c78b;hb=ebba902dc0ab1001f798784ced76f43acd8c901a;hp=2d504666db9630aed3b8f937a8e2aeb33533e084;hpb=fc7b6eb10db75a648fb7ac43cc78b4ee04311d98;p=squirrelmail.git diff --git a/plugins/change_password/options.php b/plugins/change_password/options.php index 2d504666..05941d04 100644 --- a/plugins/change_password/options.php +++ b/plugins/change_password/options.php @@ -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, 3600, TRUE); + /* perform basic checks */ $Messages = cpw_check_input(); @@ -83,6 +88,7 @@ if (isset($Messages) && count($Messages) > 0) { ?> +