Re: [aur-dev] [PATCH 2/5] use valid_email() from codeigniter's email helper

2011-06-24 Thread Ángel Velásquez
2011/6/24 Lukas Fleischer : > On Wed, Jun 22, 2011 at 10:11:28PM +0200, Cédric Girard wrote: >> On Wed, Jun 22, 2011 at 9:36 PM, Florian Pritz wrote: >> >> >  +       return ( ! >> > preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", >> > $addy)) ? FALSE : TRUE; >>

Re: [aur-dev] [PATCH 2/5] use valid_email() from codeigniter's email helper

2011-06-24 Thread Lukas Fleischer
On Wed, Jun 22, 2011 at 10:11:28PM +0200, Cédric Girard wrote: > On Wed, Jun 22, 2011 at 9:36 PM, Florian Pritz wrote: > > > + return ( ! > > preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", > > $addy)) ? FALSE : TRUE; > > > > Some legitimate email addres

Re: [aur-dev] [PATCH 2/5] use valid_email() from codeigniter's email helper

2011-06-22 Thread Cédric Girard
On Wed, Jun 22, 2011 at 9:36 PM, Florian Pritz wrote: > + return ( ! > preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", > $addy)) ? FALSE : TRUE; > Some legitimate email address will not be matched by your regexp. Better use built-in PHP functions: retu

[aur-dev] [PATCH 2/5] use valid_email() from codeigniter's email helper

2011-06-22 Thread Florian Pritz
Signed-off-by: Florian Pritz --- web/lib/aur.inc.php |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/web/lib/aur.inc.php b/web/lib/aur.inc.php index 4c2cc55..3250133 100644 --- a/web/lib/aur.inc.php +++ b/web/lib/aur.inc.php @@ -78,7 +78,7 @@ function check_sid() { # ve