From 8dfe51ef4e3eb1239f145a0a45d423a5d93cf35e Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Sun, 20 Jun 2010 06:36:31 -0400
Subject: [PATCH] - Extended rcube_user::get_username (#1486707)
---
program/include/rcmail.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index 20b7bf7..d644f4f 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -597,9 +597,9 @@
// 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
--
Gitblit v1.9.1