FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Space ignored in eMail-Validation
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Space ignored in eMail-Validation [message #22019 is a reply to message #22010] Sun, 09 January 2005 17:00 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma:
Senior Member
Administrator
Core Developer
Aha I see, thanks.

Here is the fix:
--- iemail.inc.t        2005-01-09 10:58:19.000000000 -0600
+++ iemail.inc.t~       2005-01-09 10:58:19.000000000 -0600
@@ -12,7 +12,7 @@
 
 function validate_email($email)
 {
-        return !preg_match('!^([-_A-Za-z0-9\.]+)\@([-_A-Za-z0-9\.]+)\.([A-Za-z0-9]{2,4})$!', $email);
+        return !preg_match('!([-_A-Za-z0-9\.]+)\@([-_A-Za-z0-9\.]+)\.([A-Za-z0-9]{2,4})$!', $email);
 }
 
 function encode_subject($text)


FUDforum Core Developer
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Thread Pruning not working on a 2.6.9 install.
Next Topic: pg_query() prepare issue
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 15:25:07 GMT 2024

Total time taken to generate the page: 0.04205 seconds