mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
several security fixes in admin pages
changed bbcode to only allow jpg, jpeg, gif and png git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4876 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -277,7 +277,7 @@ if ( isset($HTTP_POST_VARS['submit']) )
|
||||
{
|
||||
if ( $user_list[$i] != -1 )
|
||||
{
|
||||
$where_sql .= ( ( $where_sql != '' ) ? ', ' : '' ) . $user_list[$i];
|
||||
$where_sql .= ( ( $where_sql != '' ) ? ', ' : '' ) . intval($user_list[$i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -290,7 +290,7 @@ if ( isset($HTTP_POST_VARS['submit']) )
|
||||
{
|
||||
if ( $ip_list[$i] != -1 )
|
||||
{
|
||||
$where_sql .= ( ( $where_sql != '' ) ? ', ' : '' ) . $ip_list[$i];
|
||||
$where_sql .= ( ( $where_sql != '' ) ? ', ' : '' ) . str_replace("\'", "''", $ip_list[$i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -303,7 +303,7 @@ if ( isset($HTTP_POST_VARS['submit']) )
|
||||
{
|
||||
if ( $email_list[$i] != -1 )
|
||||
{
|
||||
$where_sql .= ( ( $where_sql != '' ) ? ', ' : '' ) . $email_list[$i];
|
||||
$where_sql .= ( ( $where_sql != '' ) ? ', ' : '' ) . str_replace("\'", "''", $email_list[$i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user