Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#5 Improved email regexp

1 Gold - SP 1.2
closed-fixed
nobody
5
2003-01-31
2003-01-30
Torsten Mrotz
No

http://www.yabbforum.com/community/YaBB.pl?
board=Y1GoldSPs;action=display;num=1043840227

YaBB's new email validation code does not allow + and -
in emails.

something like the following works for most cases:
&fatal_error("$txt{'240'} $txt{'69'} $txt{'241'}") if($member
{'email'} !~ /[\w\-\.\+]+\@[\w\-\.\+]+\.(\w{2,4})/);

done by michael prager and me.

Note: Don't forget to change this in Register.pl AND
Profile.pl - or better everywhere the mail-addi could be
checked.

Discussion

  • Torsten Mrotz
    Torsten Mrotz
    2003-01-31

    • status: open --> open-accepted
     
  • Torsten Mrotz
    Torsten Mrotz
    2003-01-31

    Logged In: YES
    user_id=289236

    hope it's completely fixed - needs to be checked CAREFULLY

     
  • Torsten Mrotz
    Torsten Mrotz
    2003-01-31

    • status: open-accepted --> closed-fixed
     
  • Torsten Mrotz
    Torsten Mrotz
    2003-01-31

    • status: closed-fixed --> closed-fixed