From d9a8d210f56859d583f3cc2674771e483edc785e Mon Sep 17 00:00:00 2001 From: Johannes Weißl Date: Sun, 9 Jun 2013 14:08:22 +0200 Subject: Fix http_authentication_host usage Without this fix it is impossible to use a host different from config option "http_authentication_host" after logout (fixup aec2869). --- plugins/http_authentication/http_authentication.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/http_authentication/http_authentication.php b/plugins/http_authentication/http_authentication.php index 57227cb03..2631537a0 100644 --- a/plugins/http_authentication/http_authentication.php +++ b/plugins/http_authentication/http_authentication.php @@ -52,7 +52,7 @@ class http_authentication extends rcube_plugin $this->load_config(); $host = rcmail::get_instance()->config->get('http_authentication_host'); - if (is_string($host) && trim($host) !== '') + if (is_string($host) && trim($host) !== '' && empty($args['host'])) $args['host'] = rcube_utils::idn_to_ascii(rcube_utils::parse_host($host)); // Allow entering other user data in login form, -- cgit v1.2.3