projects
/
fusionforge
/
fusionforge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f9fbac
)
Really return true if email address is valid (see declaration)
author
Alain Peyrat
<aljeux@free.fr>
Tue, 3 Feb 2009 21:34:43 +0000
(21:34 +0000)
committer
Alain Peyrat
<aljeux@free.fr>
Tue, 3 Feb 2009 21:34:43 +0000
(21:34 +0000)
gforge/common/include/utils.php
patch
|
blob
|
history
diff --git
a/gforge/common/include/utils.php
b/gforge/common/include/utils.php
index 546bcadd872974ba534a1c3a7e1c53810999fa49..f0aae8ceebb473bdeb21cee88454af824a64ac53 100644
(file)
--- a/
gforge/common/include/utils.php
+++ b/
gforge/common/include/utils.php
@@
-743,7
+743,7
@@
function ShowResultSet($result,$title='',$linkify=false,$displayHeaders=true,$he
*
*/
function validate_email ($address) {
- return (ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'. '@'. '[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.' . '[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', $address));
+ return (ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'. '@'. '[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.' . '[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', $address)
!== false
);
}
/**