Changeset 4490 in subversion
- Timestamp:
- Feb 3, 2011 5:08:03 PM (2 years ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/CHANGELOG
r4489 r4490 2 2 =========================== 3 3 4 - Security: protect login form submission from CSRF 4 5 - Security: prevent from relaying malicious requests through modcss.inc 5 6 - Fix handling of non-image attachments in multipart/related messages (#1487750) -
trunk/roundcubemail/index.php
r4466 r4490 76 76 // try to log in 77 77 if ($RCMAIL->task == 'login' && $RCMAIL->action == 'login') { 78 $request_valid = $_SESSION['temp'] && $RCMAIL->check_request(RCUBE_INPUT_POST, 'login'); 79 78 80 // purge the session in case of new login when a session already exists 79 81 $RCMAIL->kill_session(); … … 85 87 $RCMAIL->config->get('password_charset', 'ISO-8859-1')), 86 88 'cookiecheck' => true, 89 'valid' => $request_valid, 87 90 )); 88 91 … … 91 94 $OUTPUT->show_message("cookiesdisabled", 'warning'); 92 95 } 93 else if ($ _SESSION['temp'] && !$auth['abort'] &&96 else if ($auth['valid'] && !$auth['abort'] && 94 97 !empty($auth['host']) && !empty($auth['user']) && 95 98 $RCMAIL->login($auth['user'], $auth['pass'], $auth['host'])) { … … 124 127 $error_code = is_object($IMAP) ? $IMAP->get_error_code() : -1; 125 128 126 $OUTPUT->show_message($error_code < -1 ? 'imaperror' : 'loginfailed', 'warning');129 $OUTPUT->show_message($error_code < -1 ? 'imaperror' : (!$auth['valid'] ? 'invalidrequest' : 'loginfailed'), 'warning'); 127 130 $RCMAIL->plugins->exec_hook('login_failed', array( 128 131 'code' => $error_code, 'host' => $auth['host'], 'user' => $auth['user'])); … … 168 171 } 169 172 170 $ OUTPUT->set_env('task','login');173 $RCMAIL->set_task('login'); 171 174 $OUTPUT->send('login'); 172 175 } -
trunk/roundcubemail/program/include/rcube_session.php
r4480 r4490 254 254 public function kill() 255 255 { 256 $this->vars = false; 256 257 $this->destroy(session_id()); 257 258 rcmail::setcookie($this->cookiename, '-del-', time() - 60);
Note: See TracChangeset
for help on using the changeset viewer.
