diff options
author | friendica <info@friendica.com> | 2012-07-01 18:56:00 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-07-01 18:56:00 -0700 |
commit | dd71f9446b05274550ebcb3ce4773762832084e3 (patch) | |
tree | 0901858977a643278a1cabb0aebc36bd5e6a1bf3 /include/network.php | |
parent | 696d78d6581a77cff44cbf558930c519d9ec0413 (diff) | |
download | volse-hubzilla-dd71f9446b05274550ebcb3ce4773762832084e3.tar.gz volse-hubzilla-dd71f9446b05274550ebcb3ce4773762832084e3.tar.bz2 volse-hubzilla-dd71f9446b05274550ebcb3ce4773762832084e3.zip |
config to disable email validation
Diffstat (limited to 'include/network.php')
-rw-r--r-- | include/network.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/network.php b/include/network.php index c1a76000e..9e6f8355b 100644 --- a/include/network.php +++ b/include/network.php @@ -607,6 +607,9 @@ function validate_url(&$url) { if(! function_exists('validate_email')) { function validate_email($addr) { + if(get_config('system','disable_email_validation')) + return true; + if(! strpos($addr,'@')) return false; $h = substr($addr,strpos($addr,'@') + 1); |