Skip to content

Commit

Permalink
Update account.register.php
Browse files Browse the repository at this point in the history
Another good catch.  I made the same change here to use MySQLi real escape string instead.
  • Loading branch information
Josh authored Dec 13, 2017
1 parent f7ac399 commit 9b61f80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/account/account.register.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function Register()
}

// Ext 3 - make sure the username isnt already in use
$zrlogin = str_replace("'", "", $_POST['r_login']);
$zrlogin = $DB->real_escape_string($_POST['r_login']);
if($Account->isAvailableUsername($zrlogin) == FALSE)
{
$notreturn = TRUE;
Expand Down

0 comments on commit 9b61f80

Please sign in to comment.