summaryrefslogtreecommitdiff
path: root/program/include/main.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-06-02 12:24:22 +0000
committeralecpl <alec@alec.pl>2011-06-02 12:24:22 +0000
commitd654e80084011ea85958de67a942c9552032bbee (patch)
tree7a3db8caa6538a3b5c27c0aec1a0b2b74722d128 /program/include/main.inc
parentfde361eb5827c1598404001cd26dee50aae3e037 (diff)
- Fix identities "reply-to" and "bcc" fields have a bogus value when left empty (#1487943)
Diffstat (limited to 'program/include/main.inc')
-rw-r--r--program/include/main.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index c312df547..ab529d74b 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -1809,6 +1809,10 @@ function rcube_idn_convert($input, $is_utf=false)
$domain = $is_utf ? idn_to_ascii($domain) : idn_to_utf8($domain);
+ if ($domain === false) {
+ return '';
+ }
+
return $at ? $user . '@' . $domain : $domain;
}