diff options
author | thomascube <thomas@roundcube.net> | 2011-02-09 10:51:50 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2011-02-09 10:51:50 +0000 |
commit | b46e5b7407940499964d8a553c3eada05850f29d (patch) | |
tree | 882ffd6820097107176c1ba2e8341c0313f18ec2 /program/include/rcube_smtp.php | |
parent | 98cb0f179206843ceaa87df6bfb3d1da045ed8ad (diff) |
Apply more bugfixes from trunk for 0.5.1
Diffstat (limited to 'program/include/rcube_smtp.php')
-rw-r--r-- | program/include/rcube_smtp.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/program/include/rcube_smtp.php b/program/include/rcube_smtp.php index 5d1d459e9..81f212dcf 100644 --- a/program/include/rcube_smtp.php +++ b/program/include/rcube_smtp.php @@ -101,7 +101,7 @@ class rcube_smtp $helo_host = 'localhost'; // IDNA Support - $smtp_host = idn_to_ascii($smtp_host); + $smtp_host = rcube_idn_to_ascii($smtp_host); $this->conn = new Net_SMTP($smtp_host, $smtp_port, $helo_host); @@ -132,8 +132,9 @@ class rcube_smtp if ($smtp_user && $smtp_pass) { // IDNA Support - if (strpos($smtp_user, '@')) - $smtp_user = idn_to_ascii($smtp_user); + if (strpos($smtp_user, '@')) { + $smtp_user = rcube_idn_to_ascii($smtp_user); + } $result = $this->conn->auth($smtp_user, $smtp_pass, $smtp_auth_type, $use_tls, $smtp_authz); |