27-Aug-2013, 12:38 PM
Hi kooler,
I'm not very familiar with IDNs so I don't know whether the following solution will help. I haven't tested it.
If you have PHP 5.3 (or above) and the intl PHP extension loaded, you might be able to make use of the idn_to_ascii function.
Open /comments/includes/functions/processor.php and add the part in red:
I'm not very familiar with IDNs so I don't know whether the following solution will help. I haven't tested it.
If you have PHP 5.3 (or above) and the intl PHP extension loaded, you might be able to make use of the idn_to_ascii function.
Open /comments/includes/functions/processor.php and add the part in red:
Quote:function cmtx_validate_email ($email) { //checks whether email address was valid
$email = idn_to_ascii($email);
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
cmtx_error(CMTX_ERROR_MESSAGE_INVALID_EMAIL); //reject user for invalid email address
}
} //end of validate-email function