aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-05-11 19:01:04 -0700
committerzotlabs <mike@macgirvin.com>2017-05-11 19:01:04 -0700
commit1de1b58a087afbadb55b7f18b93fb0b502a2de3a (patch)
tree4ccf01cfea90497acca5f58697653ec734b1cc02 /include/text.php
parent4f577cbdebea44dfedece4eeddb99138d5f02f65 (diff)
downloadvolse-hubzilla-1de1b58a087afbadb55b7f18b93fb0b502a2de3a.tar.gz
volse-hubzilla-1de1b58a087afbadb55b7f18b93fb0b502a2de3a.tar.bz2
volse-hubzilla-1de1b58a087afbadb55b7f18b93fb0b502a2de3a.zip
consolidate email validation checks
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php13
1 files changed, 0 insertions, 13 deletions
diff --git a/include/text.php b/include/text.php
index dc01f97bd..fb39313a2 100644
--- a/include/text.php
+++ b/include/text.php
@@ -1042,19 +1042,6 @@ function searchbox($s,$id='search-box',$url='/search',$save = false) {
));
}
-function valid_email_regex($x){
- if(preg_match('/^[_a-zA-Z0-9\-\+]+(\.[_a-zA-Z0-9\-\+]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)+$/',$x))
- return true;
- return false;
-}
-
-function valid_email($x){
- if(get_config('system','disable_email_validation'))
- return true;
-
- return valid_email_regex($x);
-}
-
/**
* @brief Replace naked text hyperlink with HTML formatted hyperlink.
*