summaryrefslogtreecommitdiff
path: root/program/steps/addressbook/import.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-10-04 13:20:41 +0000
committeralecpl <alec@alec.pl>2010-10-04 13:20:41 +0000
commit135f84afa2140fc38348b15898a0912e31fb49c5 (patch)
tree7d2b5d815506618cc7d5100ccf36cc91ec88edd8 /program/steps/addressbook/import.inc
parente25a357d956c263c90f1c816395418ef4dbc2939 (diff)
- Convert address to utf8 on contacts import
Diffstat (limited to 'program/steps/addressbook/import.inc')
-rw-r--r--program/steps/addressbook/import.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/program/steps/addressbook/import.inc b/program/steps/addressbook/import.inc
index 2390e98c9..ceb683227 100644
--- a/program/steps/addressbook/import.inc
+++ b/program/steps/addressbook/import.inc
@@ -134,6 +134,9 @@ if ($_FILES['_file']['tmp_name'] && is_uploaded_file($_FILES['_file']['tmp_name'
$IMPORT_STATS->nomail++;
continue;
}
+
+ // We're using UTF8 internally
+ $email = idn_to_utf8($email);
if (!$replace) {
// compare e-mail address