summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-06-07 09:49:19 +0000
committeralecpl <alec@alec.pl>2010-06-07 09:49:19 +0000
commit6a642d1a2e4029fd1462e68d43a55ca1b6351f01 (patch)
treefbd2303437f1f0e870d2b4e4587aa3f12a93dc59 /program
parent073543aec910eddf897341a118084253dae03987 (diff)
- support dynamic hostname variables in 'username_domain' option
Diffstat (limited to 'program')
-rw-r--r--program/include/rcmail.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index 20b7bf7c9..d644f4f09 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -597,9 +597,9 @@ class rcmail
// Check if we need to add domain
if (!empty($config['username_domain']) && !strpos($username, '@')) {
if (is_array($config['username_domain']) && isset($config['username_domain'][$host]))
- $username .= '@'.$config['username_domain'][$host];
+ $username .= '@'.rcube_parse_host($config['username_domain'][$host]);
else if (is_string($config['username_domain']))
- $username .= '@'.$config['username_domain'];
+ $username .= '@'.rcube_parse_host($config['username_domain']);
}
// try to resolve email address from virtuser table