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

Home » FUDforum Development » Bug Reports » Register.php rejecting email
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Register.php rejecting email [message #1399 is a reply to message #1398] Thu, 11 April 2002 22:08 Go to previous messageGo to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma:
Senior Member
Administrator
Core Developer
After playing with regex and reading email RFCs

I belive that this should be a good check for email validity:


return !preg_match('!([-_A-Za-z0-9\.]+)\@([-_A-Za-z0-9\.]+)\.([A-Za-z0-9]{2,4})$!' , $email);


This also fixes a small bug in the old code (your change also has it) which dissalows emails from new domain types like .info

I will do further testing, but if you can please see if this function works fine with the emails that you have.


FUDforum Core Developer
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Error Log Viewer aborts
Next Topic: Empty Language list on Template Set Selection
Goto Forum:
  

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

Current Time: Sat Sep 28 23:13:01 GMT 2024

Total time taken to generate the page: 0.03715 seconds