aboutsummaryrefslogtreecommitdiffstats
path: root/community/roundcubemail/config-session_key.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-07-26 20:14:18 +0200
committerJakub Jirutka <jakub@jirutka.cz>2018-07-27 15:30:37 +0200
commit396a022ea240f7ce622b7b8e5587d66a62a67302 (patch)
tree7e19b021d3e7be27eaa4941c84f25f26e85478fa /community/roundcubemail/config-session_key.patch
parent932c29484953c97c27739246e25ef64e27ce3619 (diff)
downloadaports-396a022ea240f7ce622b7b8e5587d66a62a67302.tar.bz2
aports-396a022ea240f7ce622b7b8e5587d66a62a67302.tar.xz
community/roundcubemail: generate random session key in post-install
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(