diff options
author | friendica <info@friendica.com> | 2011-12-16 14:31:39 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2011-12-16 14:31:39 -0800 |
commit | 22d59350e958e24cc3b7c49ce8ceae2e3178576e (patch) | |
tree | a055b69eef5d59d1d927e76c381f984abc77ec1e | |
parent | 690b3f57b7869a0032993b0b93abe0fa292df44f (diff) | |
download | volse-hubzilla-22d59350e958e24cc3b7c49ce8ceae2e3178576e.tar.gz volse-hubzilla-22d59350e958e24cc3b7c49ce8ceae2e3178576e.tar.bz2 volse-hubzilla-22d59350e958e24cc3b7c49ce8ceae2e3178576e.zip |
improve the email regex a bit more
-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 5e9c39336..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; }} |