diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-04-11 19:28:55 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-04-11 19:28:55 +0000 |
| commit | d76fc5101833630415c0844a1c37bbc2ea60bbe0 (patch) | |
| tree | 0816790162c956b75714f1dc791e55092ca85e98 | |
| parent | c0c03f6f8496e6bc16f8c4e6225b5e612522ab80 (diff) | |
Don't allow empty user names but empty passwords
git-svn-id: https://svn.roundcube.net/trunk@541 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/index.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/roundcubemail/index.php b/roundcubemail/index.php index f365ef94d..638bc8e94 100644 --- a/roundcubemail/index.php +++ b/roundcubemail/index.php @@ -2,7 +2,7 @@ /* +-----------------------------------------------------------------------+ | RoundCube Webmail IMAP Client | - | Version 0.1-20070327 | + | Version 0.1-20070411 | | | | Copyright (C) 2005-2007, RoundCube Dev. - Switzerland | | Licensed under the GNU GPL | @@ -40,7 +40,7 @@ */ -define('RCMAIL_VERSION', '0.1-20070327'); +define('RCMAIL_VERSION', '0.1-20070411'); // define global vars $CHARSET = 'UTF-8'; @@ -172,7 +172,7 @@ if ($_action=='login' && $_task=='mail') { show_message("cookiesdisabled", 'warning'); } - else if ($_SESSION['temp'] && isset($_POST['_user']) && isset($_POST['_pass']) && + else if ($_SESSION['temp'] && !empty($_POST['_user']) && isset($_POST['_pass']) && rcmail_login(get_input_value('_user', RCUBE_INPUT_POST), get_input_value('_pass', RCUBE_INPUT_POST, true, 'ISO-8859-1'), $host)) { |
