Jamit Software Forum

Jamit Job Board Customers => User-to-User Support => Topic started by: chris on September 03, 2009, 10:07:19 am



Title: problem with validating email
Post by: chris on September 03, 2009, 10:07:19 am
hello,
if the email address of a recruiter has several "-" and "." (example : [email protected]), we can not save the post  (because of the pattern in functions.php i think).

I think it's here :

function JB_validate_mail($Email) {
    ...
    $Pattern = "/^([_a-z0-9-]+)(\.[_a-z0-9-]+)*@([a-z0-9-]+)(\.[a-z0-9-]+)*(\.[a-z]{2,})$/siD";
...

Is anybody have the same problem ? ... and have corrected it ?

thank's
chris (Jamit v 3.5.1)


Title: Re: problem with validating email
Post by: Adam on September 03, 2009, 11:43:46 am
A quick check, and it looks all right - [email protected] should match for that pattern.
I checked it here http://www.functions-online.com/preg_match.html and also employer's signup form
If you continue to have a problem, please report this as a bug to www.jamit.com/support/ - please include your site and details for how to confirm the bug.


Title: Re: problem with validating email
Post by: chris on September 03, 2009, 02:35:28 pm
ok, i do it.
after another test it seem's it is the length...