mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 22:40:39 +02:00
Yep, more \' stuff
git-svn-id: file:///svn/phpbb/trunk@1664 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -133,8 +133,8 @@ function session_begin($user_id, $user_ip, $page_id, $session_length, $auto_crea
|
|||||||
OR ban_userid = $user_id";
|
OR ban_userid = $user_id";
|
||||||
if( $user_id != ANONYMOUS )
|
if( $user_id != ANONYMOUS )
|
||||||
{
|
{
|
||||||
$sql .= " OR ban_email LIKE '" . $row['user_email'] . "'
|
$sql .= " OR ban_email LIKE '" . str_replace("\'", "''", $row['user_email']) . "'
|
||||||
OR ban_email LIKE '" . substr($row['user_email'], strpos($row['user_email'], "@")) . "'";
|
OR ban_email LIKE '" . substr(str_replace("\'", "''", $row['user_email']), strpos(str_replace("\'", "''", $row['user_email']), "@")) . "'";
|
||||||
}
|
}
|
||||||
$result = $db->sql_query($sql);
|
$result = $db->sql_query($sql);
|
||||||
if( !$result )
|
if( !$result )
|
||||||
|
Reference in New Issue
Block a user