diff options
author | Friendika <info@friendika.com> | 2010-11-15 20:22:40 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2010-11-15 20:22:40 -0800 |
commit | 949842a88d3f3c84fc87fbb549b2b397076dcbc5 (patch) | |
tree | ecaae2aa2ded99d902881045c0e96f8a1b3073e2 /mod | |
parent | f9497bcb95abae02427f9fe7e998bce29923020c (diff) | |
download | volse-hubzilla-949842a88d3f3c84fc87fbb549b2b397076dcbc5.tar.gz volse-hubzilla-949842a88d3f3c84fc87fbb549b2b397076dcbc5.tar.bz2 volse-hubzilla-949842a88d3f3c84fc87fbb549b2b397076dcbc5.zip |
validate email addresses to see if the hostnames actually resolve before committing a new user
Diffstat (limited to 'mod')
-rw-r--r-- | mod/register.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mod/register.php b/mod/register.php index 773d55364..12d27482b 100644 --- a/mod/register.php +++ b/mod/register.php @@ -65,10 +65,9 @@ function register_post(&$a) { if(! allowed_email($email)) $err .= t('Your email domain is not among those allowed on this site.') . EOL; - if(! valid_email($email)) + if((! valid_email($email)) || (! validate_email($email))) $err .= t('Not a valid email address.') . EOL; - $nickname = $_POST['nickname'] = strtolower($nickname); if(! preg_match("/^[a-z][a-z0-9\-\_]*$/",$nickname)) |