[RCU] Invalid host with roundcube 0.2-alpha

Thomas Bruederli roundcube at gmail.com
Tue Jun 24 15:39:41 CEST 2008

Hi Vincent

Thanks for reporting this. It's now fixed in the SVN trunk.


Vincent Bernat wrote:
> Hi!
> With roundcube 0.2-alpha,  I get "Invalid host" when  trying to login. I
> think that  the culprit is autoselect_host function.  If my default_host
> is empty, autoselect_host uses default_host:
>     $default_host = $this->config->get('default_host');
>     $host = !empty($default_host) ? get_input_value('_host', RCUBE_INPUT_POST) : $default_host;
> I think that it should be :
>     $default_host = $this->config->get('default_host');
>     $host = empty($default_host) ? get_input_value('_host', RCUBE_INPUT_POST) : $default_host;
> This works  then if default_host  is empty. This  also works if  it only
> contains one host. However, it does not work if I have an array. I don't
> really understand  why the rest of  the code tries to  match user domain
> since default_host is a non-associative array.
> Any hint?
List info: http://lists.roundcube.net/users/

More information about the users mailing list