mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-08 01:36:57 +02:00
Merge pull request #57 from phpbb/ticket/security-251
[ticket/security-251] Check form token when moving PM to folder
This commit is contained in:
@@ -193,6 +193,8 @@ class ucp_pm
|
|||||||
trigger_error('NO_AUTH_READ_HOLD_MESSAGE');
|
trigger_error('NO_AUTH_READ_HOLD_MESSAGE');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
add_form_key('ucp_pm_view');
|
||||||
|
|
||||||
// First Handle Mark actions and moving messages
|
// First Handle Mark actions and moving messages
|
||||||
$submit_mark = (isset($_POST['submit_mark'])) ? true : false;
|
$submit_mark = (isset($_POST['submit_mark'])) ? true : false;
|
||||||
$move_pm = (isset($_POST['move_pm'])) ? true : false;
|
$move_pm = (isset($_POST['move_pm'])) ? true : false;
|
||||||
@@ -207,6 +209,11 @@ class ucp_pm
|
|||||||
$submit_mark = false;
|
$submit_mark = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (($move_pm || $submit_mark) && !check_form_key('ucp_pm_view'))
|
||||||
|
{
|
||||||
|
trigger_error('FORM_INVALID');
|
||||||
|
}
|
||||||
|
|
||||||
// Move PM
|
// Move PM
|
||||||
if ($move_pm)
|
if ($move_pm)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user