mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
Hopefully this addresses the \' and '' problems with MSSQL, etc. ... I'd like opinions on the security of doing this.
git-svn-id: file:///svn/phpbb/trunk@1661 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -316,7 +316,7 @@ else if( $group_id )
|
||||
|
||||
$sql = "SELECT user_id, user_email
|
||||
FROM " . USERS_TABLE . "
|
||||
WHERE username = '$username'";
|
||||
WHERE username = '" . str_replace("\'", "''", $username) . "'";
|
||||
if( !$result = $db->sql_query($sql) )
|
||||
{
|
||||
message_die(GENERAL_ERROR, "Could not get user information", $lang['Error'], __LINE__, __FILE__, $sql);
|
||||
|
Reference in New Issue
Block a user