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).
pull/80/head
Johannes Weißl 11 years ago
parent 60b6d7c389
commit d9a8d210f5

@ -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,

Loading…
Cancel
Save