]> git.donarmstrong.com Git - roundcube.git/blob - debian/patches/fix_login.patch
Imported Debian patch 0.2~alpha-1
[roundcube.git] / debian / patches / fix_login.patch
1 --- a/program/include/rcmail.php~       2008-06-07 21:33:07.000000000 +0200
2 +++ a/program/include/rcmail.php        2008-06-22 13:36:57.000000000 +0200
3 @@ -474,7 +474,7 @@
4    public function autoselect_host()
5    {
6      $default_host = $this->config->get('default_host');
7 -    $host = !empty($default_host) ? get_input_value('_host', RCUBE_INPUT_POST) : $default_host;
8 +    $host = isset($_POST['_host']) ? get_input_value('_host', RCUBE_INPUT_POST) : $default_host;
9      
10      if (is_array($host)) {
11        list($user, $domain) = explode('@', get_input_value('_user', RCUBE_INPUT_POST));