mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-12 03:34:04 +02:00
Updates for the \' issue but fix for bug #496110 in admin_forums (changed names to utilise constants)
git-svn-id: file:///svn/phpbb/trunk@1681 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -46,7 +46,7 @@ if( isset($HTTP_POST_VARS['add_name']) )
|
||||
else
|
||||
{
|
||||
$sql = "INSERT INTO " . DISALLOW_TABLE . " (disallow_username)
|
||||
VALUES('" . $disallowed_user . "')";
|
||||
VALUES('" . str_replace("\'", "''", $disallowed_user) . "')";
|
||||
$result = $db->sql_query( $sql );
|
||||
if ( !$result )
|
||||
{
|
||||
|
Reference in New Issue
Block a user