aboutsummaryrefslogtreecommitdiffstats
path: root/mod/settings.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/settings.php')
-rw-r--r--mod/settings.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/settings.php b/mod/settings.php
index eab4ac52e..0687a498f 100644
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -86,8 +86,8 @@ function settings_post(&$a) {
if($email != $a->user['email']) {
$email_changed = true;
- if(!eregi('[A-Za-z0-9._%-]+@[A-Za-z0-9._%-]+\.[A-Za-z]{2,6}',$email))
- $err .= t(' Not valid email.');
+ if(! valid_email($email))
+ $err .= t(' Not valid email.');
}
if(strlen($err)) {