diff options
author | alecpl <alec@alec.pl> | 2011-02-04 13:44:47 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-02-04 13:44:47 +0000 |
commit | d80bd153a4ad57c243ed1349c6fb5ef2d968f206 (patch) | |
tree | 981dfe857e5af039013c52912970e1e63dc0bd59 /program/steps | |
parent | 47f55c0d085d913be61656a891ef607bdd2b7164 (diff) |
- Fix email_dns_check setting not used for identities/contacts (#1487740)
Diffstat (limited to 'program/steps')
-rw-r--r-- | program/steps/addressbook/save.inc | 2 | ||||
-rw-r--r-- | program/steps/settings/save_identity.inc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/program/steps/addressbook/save.inc b/program/steps/addressbook/save.inc index 934db4c73..3d55d953c 100644 --- a/program/steps/addressbook/save.inc +++ b/program/steps/addressbook/save.inc @@ -143,7 +143,7 @@ if (empty($a_record['name'])/* || empty($a_record['email'])*/) { foreach ($CONTACTS->get_col_values('email', $a_record, true) as $email) { if (strlen($email)) { $_email = rcube_idn_to_ascii($email); - if (!check_email($_email, false)) { + if (!check_email($_email)) { $OUTPUT->show_message('emailformaterror', 'warning', array('email' => $email)); rcmail_overwrite_action($return_action); return; diff --git a/program/steps/settings/save_identity.inc b/program/steps/settings/save_identity.inc index f0d25f35a..4fb6a2a9f 100644 --- a/program/steps/settings/save_identity.inc +++ b/program/steps/settings/save_identity.inc @@ -60,7 +60,7 @@ if (IDENTITIES_LEVEL == 1 || IDENTITIES_LEVEL == 3) foreach (array('email', 'reply-to', 'bcc') as $item) { if ($email = $save_data[$item]) { $ascii_email = rcube_idn_to_ascii($email); - if (!check_email($ascii_email, false)) { + if (!check_email($ascii_email)) { // show error message $OUTPUT->show_message('emailformaterror', 'error', array('email' => $email), false); rcmail_overwrite_action('edit-identity'); |