mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Yep, more \' stuff
git-svn-id: file:///svn/phpbb/trunk@1664 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
cd9b1562f1
commit
a5a2735b88
1 changed files with 2 additions and 2 deletions
|
@ -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 )
|
||||||
|
|
Loading…
Add table
Reference in a new issue