Post by jirkaA » Sun May 11, 2008 10:42 pm

Just for information, e-mail address in form something@something.info has been rejected as invalid, probably due to check routine which does not like more than 3 chars TLD. Has anyone solved it?

Regards

Jiri

Newbie

Posts

Joined
Mon Mar 24, 2008 8:10 pm

Post by lakbum » Sat May 17, 2008 5:48 am

I haven't tested this, but I just did a quick glance at the validation routine, and yes, the regular expression only checks for 2-3 characters.

So, I imagine if you changed that, you will have fixed your problem.

In catalog\controller\account_create.php in the validate(),

Code: Select all

    	if (!eregi('^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$', $request->get('email', 'post'))) {
      		$this->error['email'] = $language->get('error_email');
    	}
should be changed to

Code: Select all

    	if (!eregi('^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$', $request->get('email', 'post'))) {
      		$this->error['email'] = $language->get('error_email');
    	}
Hope that helps.

Newbie

Posts

Joined
Tue Apr 15, 2008 4:16 am

Post by lakbum » Sat May 17, 2008 6:20 am

Just found out that there's another file that needs to be changed for a separate screen.

catalog/controller/account_edit.php

The same change described above needs to be done as well.

Newbie

Posts

Joined
Tue Apr 15, 2008 4:16 am
Who is online

Users browsing this forum: No registered users and 5 guests