mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
Ok, here comes a big one. Poor updater. Also requires testing.
#i91 #i92 #i93 #i94 #i95 #i96 git-svn-id: file:///svn/phpbb/trunk@8120 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -24,6 +24,8 @@ function mcp_post_details($id, $mode, $action)
|
||||
// Get post data
|
||||
$post_info = get_post_data(array($post_id), false, true);
|
||||
|
||||
add_form_key('mcp_post_details');
|
||||
|
||||
if (!sizeof($post_info))
|
||||
{
|
||||
trigger_error('POST_NOT_EXIST');
|
||||
@@ -82,7 +84,14 @@ function mcp_post_details($id, $mode, $action)
|
||||
|
||||
if ($auth->acl_get('m_chgposter', $post_info['forum_id']))
|
||||
{
|
||||
change_poster($post_info, $row);
|
||||
if (check_form_key('mcp_post_details'))
|
||||
{
|
||||
change_poster($post_info, $row);
|
||||
}
|
||||
else
|
||||
{
|
||||
trigger_error('FORM_INVALID');
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
|
Reference in New Issue
Block a user