diff options
author | Fabio Comuni <fabrix.xm@gmail.com> | 2011-12-19 18:04:04 +0100 |
---|---|---|
committer | Fabio Comuni <fabrix.xm@gmail.com> | 2011-12-19 18:04:04 +0100 |
commit | 2a3f94e4521f00142b99ba4fa5f4ec093159cbb7 (patch) | |
tree | 35dc0c015976fbba09d48b48c6dd1850be3bff53 /include/text.php | |
parent | c3d12bc77ea3af6adc72f078d06bb9b199af6b45 (diff) | |
parent | 177af1fc9d286c4ecc7e5ce43e17f492b9e11817 (diff) | |
download | volse-hubzilla-2a3f94e4521f00142b99ba4fa5f4ec093159cbb7.tar.gz volse-hubzilla-2a3f94e4521f00142b99ba4fa5f4ec093159cbb7.tar.bz2 volse-hubzilla-2a3f94e4521f00142b99ba4fa5f4ec093159cbb7.zip |
Merge remote-tracking branch 'friendica/master'
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php index 04d5dfced..d6b3ceeab 100644 --- a/include/text.php +++ b/include/text.php @@ -635,7 +635,7 @@ function search($s,$id='search-box',$url='/search',$save = false) { if(! function_exists('valid_email')) { function valid_email($x){ - if(preg_match('/^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)+$/',$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; }} |