site: http://www.tgfiction.net/eFiction30Beta/
running eFiction 3.5 latest.
Hi, not sure if I should post this here or in bugs or whatnot, but I'll post here and hope it gets in the right place.
I recently got an email from a user that wanted to register @ my site saying the system wouldn't accept her email. The problem is her email is in the following format blah.blah@blah.blah.co.uk
I went into editbio.php and replaced:
else if(!validEmail($email)) $output .= "<div style='text-align: center;'>"._INVALIDEMAIL." "._TRYAGAIN."</div>";
with:
else if(!filter_var($email, FILTER_VALIDATE_EMAIL)) {$output .= "<div style='text-align: center;'>"._INVALIDEMAIL." "._TRYAGAIN."</div>";}
Now, the way I understand it, the method I used is only valid in PHP5, and more importantly is a security issue in PHP<5.2.3 . Is there a better way I could have/should have delt with this issue (other than telling the user to get a new email address)?
-Piper/Kirstyn Amanda Fox
StoryPortal Fiction Network -
TG Fiction dot NET | T* Fiction Archive -
LG Tales | TG Style Fiction for LG's -
I've never had that problem before...but you could try another e-mail validation function.
One that springs to mind: http://code.google.com/p/php-email-address-validation/
archive:
site:
Available for skin/mod commission! π