mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 00:07:44 +02:00
fixed get_userdata to be now really compatible with id and username (note: used intval check against 0 because of php3 compatibility)
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3533 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -716,7 +716,7 @@ if( $mode == 'edit' || $mode == 'save' && ( isset($HTTP_POST_VARS['username']) |
|
||||
}
|
||||
else
|
||||
{
|
||||
$this_userdata = get_userdata(htmlspecialchars($HTTP_POST_VARS['username']));
|
||||
$this_userdata = get_userdata($HTTP_POST_VARS['username']);
|
||||
if( !$this_userdata )
|
||||
{
|
||||
message_die(GENERAL_MESSAGE, $lang['No_user_id_specified'] );
|
||||
|
Reference in New Issue
Block a user