mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
More checks
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@8339 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
5d7276af5a
commit
cee785cb60
1 changed files with 2 additions and 1 deletions
|
@ -668,6 +668,7 @@ else if ( ( $delete && $mark_list ) || $delete_all )
|
|||
{
|
||||
$s_hidden_fields = '<input type="hidden" name="mode" value="' . $mode . '" />';
|
||||
$s_hidden_fields .= ( isset($HTTP_POST_VARS['delete']) ) ? '<input type="hidden" name="delete" value="true" />' : '<input type="hidden" name="deleteall" value="true" />';
|
||||
$s_hidden_fields .= '<input type="hidden" name="sid" value="' . $userdata['session_id'] . '" />';
|
||||
|
||||
for($i = 0; $i < count($mark_list); $i++)
|
||||
{
|
||||
|
@ -698,7 +699,7 @@ else if ( ( $delete && $mark_list ) || $delete_all )
|
|||
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
|
||||
|
||||
}
|
||||
else if ( $confirm )
|
||||
else if ($confirm && $_POST['sid'] === $userdata['session_id'])
|
||||
{
|
||||
$delete_sql_id = '';
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue