mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Merge pull request #3311 from bantu/ticket/13526
[ticket/13526] Correctly validate the ucp_pm_options form key. * bantu/ticket/13526: [ticket/13526] Correctly validate the ucp_pm_options form key.
This commit is contained in:
commit
a8027c542f
1 changed files with 5 additions and 1 deletions
|
@ -29,7 +29,11 @@ function message_options($id, $mode, $global_privmsgs_rules, $global_rule_condit
|
||||||
// Change "full folder" setting - what to do if folder is full
|
// Change "full folder" setting - what to do if folder is full
|
||||||
if (isset($_POST['fullfolder']))
|
if (isset($_POST['fullfolder']))
|
||||||
{
|
{
|
||||||
check_form_key('ucp_pm_options', $config['form_token_lifetime'], $redirect_url);
|
if (!check_form_key('ucp_pm_options'))
|
||||||
|
{
|
||||||
|
trigger_error('FORM_INVALID');
|
||||||
|
}
|
||||||
|
|
||||||
$full_action = request_var('full_action', 0);
|
$full_action = request_var('full_action', 0);
|
||||||
|
|
||||||
$set_folder_id = 0;
|
$set_folder_id = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue