diff options
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/functions.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 0723bbae58..a6c34a4345 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -486,7 +486,7 @@ function validate_username($username) OR LOWER(g.group_name) = '" . strtolower($username) . "' )"; $sql_disallow = "SELECT disallow_username FROM " . DISALLOW_TABLE . " - WHERE disallow_username = '$username'"; + WHERE '$username' LIKE disallow_username"; if($result = $db->sql_query($sql_users)) { if($db->sql_numrows($result) > 0) @@ -513,7 +513,7 @@ function validate_username($username) UNION SELECT disallow_username, NULL FROM " . DISALLOW_TABLE . " - WHERE disallow_username = '$username'"; + WHERE '$username' LIKE disallow_username"; if($result = $db->sql_query($sql)) { if($db->sql_numrows($result) > 0) @@ -1207,4 +1207,4 @@ function message_die($msg_code, $msg_text = "", $msg_title = "", $err_line = "", } -?>
\ No newline at end of file +?> |