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/text.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/text.php')
-rw-r--r-- | include/text.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php index 3b0050d38..c3558c641 100644 --- a/include/text.php +++ b/include/text.php @@ -656,6 +656,10 @@ function search($s,$id='search-box',$url='/search',$save = false) { if(! function_exists('valid_email')) { function valid_email($x){ + + if(get_config('system','disable_email_validation')) + return true; + if(preg_match('/^[_a-zA-Z0-9\-\+]+(\.[_a-zA-Z0-9\-\+]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)+$/',$x)) return true; return false; |