aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2011-12-16 14:06:50 -0800
committerfriendica <info@friendica.com>2011-12-16 14:06:50 -0800
commit690b3f57b7869a0032993b0b93abe0fa292df44f (patch)
tree9352521212738576586fe9dff48b32568ea048c7 /include
parentefb9157490c38258106d8e33ae33b28a2e11788f (diff)
downloadvolse-hubzilla-690b3f57b7869a0032993b0b93abe0fa292df44f.tar.gz
volse-hubzilla-690b3f57b7869a0032993b0b93abe0fa292df44f.tar.bz2
volse-hubzilla-690b3f57b7869a0032993b0b93abe0fa292df44f.zip
bug 241 - valid emails may contain + on lhs
Diffstat (limited to 'include')
-rw-r--r--include/text.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index 04d5dfced..5e9c39336 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;
}}