1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 16:56:44 +02:00

[ticket/16207] Add form keys to actions in MCP

PHPBB3-16207
This commit is contained in:
Marc Alexander
2019-11-10 17:53:27 +01:00
parent 32543c40ba
commit ee1cb783cb
2 changed files with 15 additions and 1 deletions

View File

@@ -50,10 +50,17 @@ function mcp_forum_view($id, $mode, $action, $forum_info)
$url = append_sid("{$phpbb_root_path}mcp.$phpEx?$url_extra");
add_form_key('mcp_forum');
// Resync Topics
switch ($action)
{
case 'resync':
if (!check_form_key('mcp_forum'))
{
trigger_error('FORM_INVALID');
}
$topic_ids = $request->variable('topic_id_list', array(0));
mcp_resync_topics($topic_ids);
break;