osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

[Bug] Error on email address checking function

This is a discussion on [Bug] Error on email address checking function within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; Hello, I just installed OSCMax, and I found an error regarding checks performed on email addresses. I tried to change ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 01-24-2005, 06:48 AM
Lurker
 
Join Date: Jan 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
daigo75
Default [Bug] Error on email address checking function

Hello, I just installed OSCMax, and I found an error regarding checks performed on email addresses. I tried to change the administrator email address, and I got the following error: "Email address format is invalid!"
Now, my email address is something like j.smith@domain.com ("j" could be for "John"); error checking javascript performs the following check:
[...]
(adminEmail.indexOf("@") <= 1 ||
adminEmail.indexOf("@") >= (adminEmail.length - 3) ||
adminEmail.indexOf(".") < 3 ||
adminEmail.indexOf(".") >= (adminEmail.length - 2) ||
adminEmail.indexOf("@.") >= 0 ) {
[...]

On the third row there's an error. There are many email addresses having a dot as second characters (mine is an example), I think check should be performed as follows:
[...]
adminEmail.indexOf(".") < 1 ||
[...]

I hope this could be of some help

Daigo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Want to change email address and password for admin ozstar osCMax v2 Installation issues 5 04-22-2006 03:38 PM
Adding admin: Email address format invalid xxx.yyy@xxx.co.uk JonMWilson osCMax v2 Features Discussion 3 01-09-2006 08:15 PM
PayPal email address error check in affiliate_signup ganast osCMax v2 Customization/Mods 0 08-24-2005 08:51 AM
Fatal error: Call to undefined function: array_map() Anonymous osCMax v1.7 Discussion 3 01-21-2004 12:38 PM
Send Email function for oscommerce daybeauty osCommerce 2.2 Modification Help 2 07-17-2003 12:59 AM


All times are GMT -8. The time now is 09:24 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax