cforms II User Forum

Registration is currently disabled.
Guest

FAQs

Login form protected by Login LockDown.


Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

    

Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
non-"standard" email addresses fail "is email" check
May 22, 2007
5:23 pm
Twiggle
Guest

I've had trouble getting addresses through the "is email" check that are non-standard extensions such as .info or .lib.st.us.

Is this a bug or a feature?

 

May 22, 2007
5:34 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

A feature. But one that can easily be adjusted (I'll fix it for 4.6). The "@.info" didn't work due to the email verification being a bit outdated and only considering a max of 3 letters at the end (only for the non-ajax submission method, Ajax should've worked fine anyway), to fix look in cforms.php for this function:

function cforms_is_email($string)
{ return eregi("^[_a-z0-9-]+(\\.[_a-z0-9-]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)*(\\.[a-z]{2,3})$", $string); }

and replace with 

function cforms_is_email($string)
{ return eregi("^[_a-z0-9-]+(\\.[_a-z0-9-]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)*(\\.[a-z]{2,4})$", $string); }

The other email addr "@lib.st.us" should've worked just fine. If it still doesn't for yo, pls post a URL to test.

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
23 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3762

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5361

Posts: 18742

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)