aboutsummaryrefslogtreecommitdiffstats
path: root/community/roundcubemail/config-session_key.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/roundcubemail/config-session_key.patch')
-rw-r--r--community/roundcubemail/config-session_key.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/community/roundcubemail/config-session_key.patch b/community/roundcubemail/config-session_key.patch
new file mode 100644
index 0000000000..a94bd9bd10
--- /dev/null
+++ b/community/roundcubemail/config-session_key.patch
@@ -0,0 +1,11 @@
+--- a/config/config.inc.php.sample
++++ b/config/config.inc.php.sample
+@@ -74,7 +74,7 @@
+ // in the session record (and the client cookie if remember password is enabled).
+ // please provide a string of exactly 24 chars.
+ // YOUR KEY MUST BE DIFFERENT THAN THE SAMPLE VALUE FOR SECURITY REASONS
+-$config['des_key'] = 'rcmail-!24ByteDESkey*Str';
++$config['des_key'] = trim(file(RCMAIL_CONFIG_DIR . '/session_key')[0]);
+
+ // List of active plugins (in plugins/ directory)
+ $config['plugins'] = array(