User registration - invalid email User registration - invalid email
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

User registration - invalid email

Started by Lynn, February 09, 2004, 06:12:55 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lynn

Hi all,

I've got a small problem regarding the user registration system.  Here at the University of Washington all our email addresses end in @u.washington.edu, which does not seem to sit well with Coppermine.  It's been spewing "Email address invalid" errors at anyone who registers with their UW address.

Anyone have any suggestions on how to rectify this?

Thanks!

Joachim Müller

the regular expression that does email validation apparently needs a redo, since it requires the alpha-numerical bits after the @ to be at least 2 characters long. Edit register.php and search for    if (!eregi("^[_\.0-9a-z\-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,6}$", $email)) $error .= '<li>' . $lang_register_php['err_invalid_email'];and replace with    if (!eregi("^[\'+\\./0-9A-Z^_\`a-z{|}~\-]+@[a-zA-Z0-9_\-]+(\.[a-zA-Z0-9_\-]+){1,3}$", $email)) $error .= '<li>' . $lang_register_php['err_invalid_email'];. There are tons of regular expressions out there that are recommended to check valid emails...

GauGau

Lynn