From 1e4ad86b287e774c2fc591c46006f395b17a5dd2 Mon Sep 17 00:00:00 2001 From: thomasb Date: Wed, 22 Nov 2006 11:56:22 +0000 Subject: Added host auto-selection and correct password encoding for IMAP login git-svn-id: https://svn.roundcube.net/trunk@385 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/index.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'roundcubemail/index.php') diff --git a/roundcubemail/index.php b/roundcubemail/index.php index 4bf9d9487..da92874a2 100644 --- a/roundcubemail/index.php +++ b/roundcubemail/index.php @@ -166,7 +166,7 @@ if ($_action=='html2text') // try to log in if ($_action=='login' && $_task=='mail') { - $host = $_POST['_host'] ? $_POST['_host'] : $CONFIG['default_host']; + $host = rcmail_autoselect_host(); // check if client supports cookies if (empty($_COOKIE)) @@ -174,7 +174,8 @@ if ($_action=='login' && $_task=='mail') show_message("cookiesdisabled", 'warning'); } else if (isset($_POST['_user']) && isset($_POST['_pass']) && - rcmail_login(get_input_value('_user', RCUBE_INPUT_POST), $_POST['_pass'], $host)) + rcmail_login(get_input_value('_user', RCUBE_INPUT_POST), + get_input_value('_pass', RCUBE_INPUT_POST, true, 'ISO-8859-1'), $host)) { // send redirect header("Location: $COMM_PATH"); -- cgit v1.2.3