diff options
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); |