mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/security-252] Check form token on marking PM
SECURITY-252
This commit is contained in:
parent
e7a6ed20e8
commit
25c80df156
1 changed files with 5 additions and 5 deletions
|
@ -209,14 +209,14 @@ class ucp_pm
|
|||
$submit_mark = false;
|
||||
}
|
||||
|
||||
// Move PM
|
||||
if ($move_pm)
|
||||
{
|
||||
if (!check_form_key('ucp_pm_view'))
|
||||
if (($move_pm || $submit_mark) && !check_form_key('ucp_pm_view'))
|
||||
{
|
||||
trigger_error('FORM_INVALID');
|
||||
}
|
||||
|
||||
// Move PM
|
||||
if ($move_pm)
|
||||
{
|
||||
$move_msg_ids = (isset($_POST['marked_msg_id'])) ? $request->variable('marked_msg_id', array(0)) : array();
|
||||
$cur_folder_id = $request->variable('cur_folder_id', PRIVMSGS_NO_BOX);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue