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