Revision 40
Added by stefan about 20 years ago
| signup2.php | ||
|---|---|---|
| 75 | 75 |
} |
| 76 | 76 |
|
| 77 | 77 |
// Check if the email already exists |
| 78 |
$results = $database->query("SELECT user_id FROM ".TABLE_PREFIX."users WHERE email = '".addslashes($_POST['email'])."'");
|
|
| 78 |
$results = $database->query("SELECT user_id FROM ".TABLE_PREFIX."users WHERE email = '".$this->add_slashes($_POST['email'])."'");
|
|
| 79 | 79 |
if($results->numRows() > 0) {
|
| 80 | 80 |
if(isset($MESSAGE['USERS']['EMAIL_TAKEN'])) {
|
| 81 | 81 |
$admin->print_error($MESSAGE['USERS']['EMAIL_TAKEN'], $js_back); |
Also available in: Unified diff
Change addslashes,stripslashes to (wb class) method calls add_slashes,strip_slashes