aboutsummaryrefslogtreecommitdiff
path: root/mail/roundcube/files
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2014-04-10 09:51:13 +0000
committerAlex Dupre <ale@FreeBSD.org>2014-04-10 09:51:13 +0000
commit1c98c289427aabd7f17ea78d88c3e7971fc71223 (patch)
tree5c2de404275c8a982550d4ceed2fd784e2bfbc4e /mail/roundcube/files
parentb8ee9b5827b7ffb31dec62f7fea824ba833e6313 (diff)
downloadports-1c98c289427aabd7f17ea78d88c3e7971fc71223.tar.gz
ports-1c98c289427aabd7f17ea78d88c3e7971fc71223.zip
Notes
Diffstat (limited to 'mail/roundcube/files')
-rw-r--r--mail/roundcube/files/patch-config_defaults.inc.php13
-rw-r--r--mail/roundcube/files/patch-config_main.inc.php.dist13
-rw-r--r--mail/roundcube/files/patch-program_lib_Roundcube_rcube_session.php59
3 files changed, 42 insertions, 43 deletions
diff --git a/mail/roundcube/files/patch-config_defaults.inc.php b/mail/roundcube/files/patch-config_defaults.inc.php
new file mode 100644
index 000000000000..327df4a331a5
--- /dev/null
+++ b/mail/roundcube/files/patch-config_defaults.inc.php
@@ -0,0 +1,13 @@
+--- config/defaults.inc.php.orig 2014-04-06 14:13:09.000000000 +0000
++++ config/defaults.inc.php 2014-04-10 09:08:58.242144399 +0000
+@@ -596,8 +596,8 @@
+ // connect to a Nox Spell Server when using 'googie' here. Therefore specify the 'spellcheck_uri'
+ $config['spellcheck_engine'] = 'googie';
+
+-// For locally installed Nox Spell Server or After the Deadline services,
+-// please specify the URI to call it.
++// For a locally installed spellcheker, specify the URI to call it, for example:
++// 'http://' . $_SERVER['HTTP_HOST'] . '/spellchecker.php?lang='
+ // Get Nox Spell Server from http://orangoo.com/labs/?page_id=72 or
+ // the After the Deadline package from http://www.afterthedeadline.com.
+ // Leave empty to use the public API of service.afterthedeadline.com
diff --git a/mail/roundcube/files/patch-config_main.inc.php.dist b/mail/roundcube/files/patch-config_main.inc.php.dist
deleted file mode 100644
index f29bea32b429..000000000000
--- a/mail/roundcube/files/patch-config_main.inc.php.dist
+++ /dev/null
@@ -1,13 +0,0 @@
---- config/main.inc.php.dist.orig 2008-04-26 00:18:03.000000000 +0200
-+++ config/main.inc.php.dist 2008-04-26 00:19:22.000000000 +0200
-@@ -188,8 +188,8 @@
- // requires to be compiled with Open SSL support
- $rcmail_config['enable_spellcheck'] = TRUE;
-
--// For a locally installed Nox Spell Server, please specify the URI to call it.
--// Get Nox Spell Server from http://orangoo.com/labs/?page_id=72
-+// For a locally installed spellcheker, specify the URI to call it, for example:
-+// 'http://' . $_SERVER['HTTP_HOST'] . '/spellchecker.php?lang='
- // Leave empty to use the Google spell checking service, what means
- // that the message content will be sent to Google in order to check spelling
- $rcmail_config['spellcheck_uri'] = '';
diff --git a/mail/roundcube/files/patch-program_lib_Roundcube_rcube_session.php b/mail/roundcube/files/patch-program_lib_Roundcube_rcube_session.php
index 4c719300dc49..3ead718ea678 100644
--- a/mail/roundcube/files/patch-program_lib_Roundcube_rcube_session.php
+++ b/mail/roundcube/files/patch-program_lib_Roundcube_rcube_session.php
@@ -1,23 +1,23 @@
---- program/lib/Roundcube/rcube_session.php.orig 2013-05-16 20:06:31.000000000 +0200
-+++ program/lib/Roundcube/rcube_session.php 2013-05-27 15:46:41.000000000 +0200
-@@ -33,7 +33,6 @@
- private $start;
- private $changed;
+--- program/lib/Roundcube/rcube_session.php.orig 2014-04-06 14:13:10.000000000 +0000
++++ program/lib/Roundcube/rcube_session.php 2014-04-10 09:21:36.955091803 +0000
+@@ -35,7 +35,6 @@
+ private $time_diff = 0;
private $reloaded = false;
+ private $appends = array();
- private $unsets = array();
private $gc_handlers = array();
private $cookiename = 'roundcube_sessauth';
private $vars;
-@@ -131,7 +130,7 @@
- if ($sql_result && ($sql_arr = $this->db->fetch_assoc($sql_result))) {
- $this->changed = strtotime($sql_arr['changed']);
- $this->ip = $sql_arr['ip'];
-- $this->vars = base64_decode($sql_arr['vars']);
-+ $this->vars = $sql_arr['vars'];
- $this->key = $key;
+@@ -176,7 +175,7 @@
+ $this->time_diff = time() - strtotime($sql_arr['ts']);
+ $this->changed = strtotime($sql_arr['changed']);
+ $this->ip = $sql_arr['ip'];
+- $this->vars = base64_decode($sql_arr['vars']);
++ $this->vars = $sql_arr['vars'];
+ $this->key = $key;
return !empty($this->vars) ? (string) $this->vars : '';
-@@ -168,13 +167,13 @@
+@@ -214,12 +213,12 @@
}
if ($oldvars !== null) {
@@ -25,24 +25,23 @@
+ $newvars = $vars;
if ($newvars !== $oldvars) {
- $this->db->query(
- sprintf("UPDATE %s SET vars=?, changed=%s WHERE sess_id=?",
- $this->db->table_name('session'), $now),
-- base64_encode($newvars), $key);
-+ $newvars, $key);
+ $this->db->query("UPDATE $table "
+ . "SET changed = $now, vars = ? WHERE sess_id = ?",
+- base64_encode($newvars), $key);
++ $newvars, $key);
}
- else if ($ts - $this->changed > $this->lifetime / 2) {
- $this->db->query("UPDATE ".$this->db->table_name('session')
-@@ -186,7 +185,7 @@
- sprintf("INSERT INTO %s (sess_id, vars, ip, created, changed) ".
- "VALUES (?, ?, ?, %s, %s)",
- $this->db->table_name('session'), $now, $now),
-- $key, base64_encode($vars), (string)$this->ip);
-+ $key, $vars, (string)$this->ip);
+ else if ($ts - $this->changed + $this->time_diff > $this->lifetime / 2) {
+ $this->db->query("UPDATE $table SET changed = $now"
+@@ -229,7 +228,7 @@
+ else {
+ $this->db->query("INSERT INTO $table (sess_id, vars, ip, created, changed)"
+ . " VALUES (?, ?, ?, $now, $now)",
+- $key, base64_encode($vars), (string)$this->ip);
++ $key, $vars, (string)$this->ip);
}
return true;
-@@ -194,40 +193,6 @@
+@@ -237,40 +236,6 @@
/**
@@ -83,16 +82,16 @@
* Handler for session_destroy()
*
* @param string Session ID
-@@ -308,7 +273,7 @@
+@@ -332,7 +297,7 @@
else // else read data again
$oldvars = $this->mc_read($key);
- $newvars = $oldvars !== null ? $this->_fixvars($vars, $oldvars) : $vars;
+ $newvars = $vars;
- if ($newvars !== $oldvars || $ts - $this->changed > $this->lifetime / 2) {
+ if ($newvars !== $oldvars || $ts - $this->changed > $this->lifetime / 3) {
return $this->memcache->set($key, serialize(array('changed' => time(), 'ip' => $this->ip, 'vars' => $newvars)),
-@@ -416,8 +381,6 @@
+@@ -470,8 +435,6 @@
return $this->destroy(session_id());
}