diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-11-22 11:56:22 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-11-22 11:56:22 +0000 |
| commit | 1e4ad86b287e774c2fc591c46006f395b17a5dd2 (patch) | |
| tree | 69edf6cdb538e50de4bb245d20fba9f25b049e79 /roundcubemail/index.php | |
| parent | d8fd52471ce65d1a71e51173d778eddd52573d3f (diff) | |
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
Diffstat (limited to 'roundcubemail/index.php')
| -rw-r--r-- | roundcubemail/index.php | 5 |
1 files changed, 3 insertions, 2 deletions
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"); |
