it is this part:
if (!$admin->validate_email($email_from)) {
$email_from = '';
}
if (!$admin->validate_email($email_replyto)) {
$email_replyto = '';
}
if (!$admin->validate_email($success_email_from)) {
$success_email_from = '';
}
(mpform/save_settings.php line 142)
that needs this function:
// Validate supplied email address
public function validate_email($email) {
if (\is_callable('\idn_to_ascii') && (\defined('INTL_IDNA_VARIANT_UTS46') || \defined('INTL_IDNA_VARIANT_2003'))){ /* use pear if available */
$aInfoMatch = [];
// 7.2.0 INTL_IDNA_VARIANT_2003 has been deprecated; use INTL_IDNA_VARIANT_UTS46 instead.
$iVariant = \defined('INTL_IDNA_VARIANT_UTS46') ? \INTL_IDNA_VARIANT_UTS46 : \INTL_IDNA_VARIANT_2003;
$email = \idn_to_ascii($email, 0, $iVariant);
}else {
$IDN = new idna_convert();
$email = $IDN->encode($email);
unset($IDN);
}
// regex from NorHei 2011-01-11
$retval = \preg_match("/^((([!#$%&'*+\\-\/\=?^_`{|}~\w])|([!#$%&'*+\\-\/\=?^_`{|}~\w][!#$%&'*+\\-\/\=?^_`{|}~\.\w]{0,}[!#$%&'*+\\-\/\=?^_`{|}~\w]))[@]\w+(([-.]|\-\-)\w+)*\.\w+(([-.]|\-\-)\w+)*)$/", $email);
return ($retval != false);
}
(functions/class.wb.php line 605)
I guess the save_settings needs the validation in another way but I don't have a clue