alecpl
2011-03-31 382b8b1351e1a4598f04ab184cec803b96d7e4b7
- Applied fixes from trunk


27 files modified
25 ■■■■ changed files
CHANGELOG 1 ●●●● patch | view | raw | blame | history
index.php 2 ●●● patch | view | raw | blame | history
program/include/rcmail.php 12 ●●●●● patch | view | raw | blame | history
program/include/rcube_browser.php 2 ●●● patch | view | raw | blame | history
program/localization/index.inc 4 ●●●● patch | view | raw | blame | history
program/steps/utils/spell_googie.inc 2 ●●●●● patch | view | raw | blame | history
program/steps/utils/spell_html_googie.inc 2 ●●● patch | view | raw | blame | history
skins/default/images/abook_toolbar.png patch | view | raw | blame | history
skins/default/images/buttons/bg.gif patch | view | raw | blame | history
skins/default/images/dbutton.png patch | view | raw | blame | history
skins/default/images/dimple.png patch | view | raw | blame | history
skins/default/images/display/icons.png patch | view | raw | blame | history
skins/default/images/icons/expanded.png patch | view | raw | blame | history
skins/default/images/icons/glass.png patch | view | raw | blame | history
skins/default/images/icons/glass_roll.png patch | view | raw | blame | history
skins/default/images/icons/groupactions.png patch | view | raw | blame | history
skins/default/images/listheader.gif patch | view | raw | blame | history
skins/default/images/mail_footer.png patch | view | raw | blame | history
skins/default/images/mail_toolbar.png patch | view | raw | blame | history
skins/default/images/messageicons.png patch | view | raw | blame | history
skins/default/images/pagenav.gif patch | view | raw | blame | history
skins/default/images/searchfield.gif patch | view | raw | blame | history
skins/default/images/tabs-left.gif patch | view | raw | blame | history
skins/default/images/tabs-right.gif patch | view | raw | blame | history
skins/default/images/taskicons.gif patch | view | raw | blame | history
skins/default/images/taskicons.png patch | view | raw | blame | history
skins/default/images/watermark.gif patch | view | raw | blame | history
CHANGELOG
@@ -1,6 +1,7 @@
CHANGELOG Roundcube Webmail
===========================
- Stateless request tokens. No keep-alive necessary on login page (#1487829)
- PEAR::Net_SMTP 1.5.1
- Force names of unique constraints in PostgreSQL DDL
- Add code for prevention from IMAP connection hangs when server closes socket unexpectedly
index.php
@@ -182,7 +182,7 @@
  // check client X-header to verify request origin
  if ($OUTPUT->ajax_call) {
    if (rc_request_header('X-Roundcube-Request') != $RCMAIL->get_request_token()) {
    if (rc_request_header('X-Roundcube-Request') != $RCMAIL->get_request_token() && !$RCMAIL->config->get('devel_mode')) {
      header('HTTP/1.1 404 Not Found');
      die("Invalid Request");
    }
program/include/rcmail.php
@@ -1105,12 +1105,9 @@
   */
  public function get_request_token()
  {
    $key = $this->task;
    if (!$_SESSION['request_tokens'][$key])
      $_SESSION['request_tokens'][$key] = md5(uniqid($key . mt_rand(), true));
    return $_SESSION['request_tokens'][$key];
    $sess_id = $_COOKIE[ini_get('session.name')];
    if (!$sess_id) $sess_id = session_id();
    return md5('RT' . $this->task . $this->config->get('des_key') . $sess_id);
  }
@@ -1123,7 +1120,8 @@
  public function check_request($mode = RCUBE_INPUT_POST)
  {
    $token = get_input_value('_token', $mode);
    return !empty($token) && $_SESSION['request_tokens'][$this->task] == $token;
    $sess_id = $_COOKIE[ini_get('session.name')];
    return !empty($sess_id) && $token == $this->get_request_token();
  }
program/include/rcube_browser.php
@@ -42,7 +42,7 @@
        $this->ns4 = strstr($HTTP_USER_AGENT, 'mozilla/4') && !strstr($HTTP_USER_AGENT, 'msie');
        $this->ns  = ($this->ns4 || strstr($HTTP_USER_AGENT, 'netscape'));
        $this->ie  = !$this->opera && strstr($HTTP_USER_AGENT, 'compatible; msie');
        $this->mz  = strstr($HTTP_USER_AGENT, 'mozilla/5');
        $this->mz  = !$this->ie && strstr($HTTP_USER_AGENT, 'mozilla/5');
        $this->chrome = strstr($HTTP_USER_AGENT, 'chrome');
        $this->khtml = strstr($HTTP_USER_AGENT, 'khtml');
        $this->safari = !$this->chrome && ($this->khtml || strstr($HTTP_USER_AGENT, 'safari'));
program/localization/index.inc
@@ -42,8 +42,8 @@
  'cs_CZ' => 'Czech (Česky)',
  'da_DK' => 'Danish (Dansk)',
  'fa_AF' => 'Dari (ﻯﺭﺩ)',
  'de_DE' => 'Deutsch (Deutsch)',
  'de_CH' => 'Deutsch (Schweiz)',
  'de_DE' => 'German (Deutsch)',
  'de_CH' => 'German (Schweiz)',
  'nl_NL' => 'Dutch (Nederlands)',
  'en_GB' => 'English (GB)',
  'en_US' => 'English (US)',
program/steps/utils/spell_googie.inc
@@ -41,6 +41,8 @@
  }
$data = file_get_contents('php://input');
// Google has some problem with spaces, use \n instead
$data = str_replace(' ', "\n", $data);
$store = "";
if ($fp = fsockopen($host, $port, $errno, $errstr, 30))
program/steps/utils/spell_html_googie.inc
@@ -80,7 +80,7 @@
  $path = $a_uri['path'] . ($a_uri['query'] ? '?'.$a_uri['query'] : '') . $lang;
  }
$wordstr = implode(' ', (array) $data);
$wordstr = implode("\n", (array) $data);
$data = '<?xml version="1.0" encoding="utf-8" ?>'
    .'<spellrequest textalreadyclipped="0" ignoredups="0" ignoredigits="1" ignoreallcaps="1">'
    .'<text>' . $wordstr . '</text>'
skins/default/images/abook_toolbar.png

skins/default/images/buttons/bg.gif

skins/default/images/dbutton.png

skins/default/images/dimple.png

skins/default/images/display/icons.png

skins/default/images/icons/expanded.png

skins/default/images/icons/glass.png

skins/default/images/icons/glass_roll.png

skins/default/images/icons/groupactions.png

skins/default/images/listheader.gif

skins/default/images/mail_footer.png

skins/default/images/mail_toolbar.png

skins/default/images/messageicons.png

skins/default/images/pagenav.gif

skins/default/images/searchfield.gif

skins/default/images/tabs-left.gif

skins/default/images/tabs-right.gif

skins/default/images/taskicons.gif

skins/default/images/taskicons.png

skins/default/images/watermark.gif