Topic RSS
5:23 pm
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?
5:34 pm
March 6, 2005
OfflineA 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.
Most Users Ever Online: 959
Currently Online:
54 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: 3549
Members: 1464
Moderators: 3
Admins: 1
Forum Stats:
Groups: 1
Forums: 4
Topics: 5157
Posts: 18387
Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass
Moderators: Paul (421), cnymike (8), sonika (95)
Administrators: Oliver (6398)
FAQs
Home
Add Reply
Add Topic
Quote











