diff options
author | Friendika <info@friendika.com> | 2010-11-14 00:32:31 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2010-11-14 00:32:31 -0800 |
commit | 0851669b39db770e62374551c9394f0f3a652314 (patch) | |
tree | bf5dbba7080891dea1b48151022bc915d23c64c0 /mod/settings.php | |
parent | 7db4a0dd2ee631c4b0652e5852b1bb6f5ca50e63 (diff) | |
download | volse-hubzilla-0851669b39db770e62374551c9394f0f3a652314.tar.gz volse-hubzilla-0851669b39db770e62374551c9394f0f3a652314.tar.bz2 volse-hubzilla-0851669b39db770e62374551c9394f0f3a652314.zip |
clean up some regex's for i18n, and eliminate old ereg patterns.
Diffstat (limited to 'mod/settings.php')
-rw-r--r-- | mod/settings.php | 4 |
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)) { |