mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/14823] Move check_form_key() inside actual save data step
PHPBB3-14823
This commit is contained in:
parent
a41b16d06a
commit
466bdee8e6
1 changed files with 5 additions and 5 deletions
|
@ -597,13 +597,13 @@ class acp_profile
|
|||
|
||||
if (!sizeof($error))
|
||||
{
|
||||
if (($submit || $save) && !check_form_key($form_key))
|
||||
{
|
||||
trigger_error($user->lang['FORM_INVALID'] . adm_back_link($this->u_action), E_USER_WARNING);
|
||||
}
|
||||
|
||||
if (($step == 3 && (sizeof($this->lang_defs['iso']) == 1 || $save)) || ($action == 'edit' && $save))
|
||||
{
|
||||
if (!check_form_key($form_key))
|
||||
{
|
||||
trigger_error($user->lang['FORM_INVALID'] . adm_back_link($this->u_action), E_USER_WARNING);
|
||||
}
|
||||
|
||||
$this->save_profile_field($cp, $field_type, $action);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue