Aleksander Machniak
2013-06-13 f0398c87d9bd472d23b6dfce6943d97fbf9fabf5
plugins/http_authentication/http_authentication.php
@@ -38,7 +38,7 @@
                $args['action'] = 'login';
            }
            // Set user password in session (see shutdown() method for more info)
            else if (!empty($_SESSION['user_id']) && empty($_SESION['password'])) {
            else if (!empty($_SESSION['user_id']) && empty($_SESSION['password'])) {
                $_SESSION['password'] = $rcmail->encrypt($_SERVER['PHP_AUTH_PW']);
            }
        }
@@ -52,8 +52,8 @@
        $this->load_config();
        $host = rcmail::get_instance()->config->get('http_authentication_host');
        if (is_string($host) && trim($host) !== '')
            $args['host'] = rcube_idn_to_ascii(rcube_parse_host($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,
        // e.g. after log out (#1487953)