|
@@ -597,7 +597,7 @@ function Activate()
|
|
|
|
|
|
// @todo Separate the sprintf?
|
|
// @todo Separate the sprintf?
|
|
if (preg_match('~^[0-9A-Za-z=_+\-/][0-9A-Za-z=_\'+\-/\.]*@[\w\-]+(\.[\w\-]+)*(\.[\w]{2,6})$~', $_POST['new_email']) == 0)
|
|
if (preg_match('~^[0-9A-Za-z=_+\-/][0-9A-Za-z=_\'+\-/\.]*@[\w\-]+(\.[\w\-]+)*(\.[\w]{2,6})$~', $_POST['new_email']) == 0)
|
|
- fatal_error(sprintf($txt['valid_email_needed'], htmlspecialchars($_POST['new_email'])), false);
|
|
|
|
|
|
+ fatal_error(sprintf($txt['valid_email_needed'], $smcFunc['htmlspecialchars']($_POST['new_email'])), false);
|
|
|
|
|
|
// Make sure their email isn't banned.
|
|
// Make sure their email isn't banned.
|
|
isBannedEmail($_POST['new_email'], 'cannot_register', $txt['ban_register_prohibited']);
|
|
isBannedEmail($_POST['new_email'], 'cannot_register', $txt['ban_register_prohibited']);
|
|
@@ -614,7 +614,7 @@ function Activate()
|
|
);
|
|
);
|
|
// @todo Separate the sprintf?
|
|
// @todo Separate the sprintf?
|
|
if ($smcFunc['db_num_rows']($request) != 0)
|
|
if ($smcFunc['db_num_rows']($request) != 0)
|
|
- fatal_lang_error('email_in_use', false, array(htmlspecialchars($_POST['new_email'])));
|
|
|
|
|
|
+ fatal_lang_error('email_in_use', false, array($smcFunc['htmlspecialchars']($_POST['new_email'])));
|
|
$smcFunc['db_free_result']($request);
|
|
$smcFunc['db_free_result']($request);
|
|
|
|
|
|
updateMemberData($row['id_member'], array('email_address' => $_POST['new_email']));
|
|
updateMemberData($row['id_member'], array('email_address' => $_POST['new_email']));
|