Skip to content

Commit 1d28440

Browse files
committed
Save config on upgrade
Signed-off-by: Xheni Myrtaj <[email protected]>
1 parent 9e77419 commit 1d28440

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

public_html/lists/admin/upgrade.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,13 +369,16 @@ function output($message)
369369
if (version_compare($dbversion, '3.3.3','<')) {
370370
// add a draft campaign for invite plugin
371371
addInviteCampaign();
372-
373372
}
374373

375374
if (version_compare($dbversion, '3.3.4','<')) {
376375
Sql_Query("alter table {$GLOBALS['tables']['bounce']} modify data mediumblob ");
377376
}
378377

378+
if (version_compare($dbversion, '3.4.0-RC1','<')) {
379+
SaveConfig('secret', bin2hex(random_bytes(20)));
380+
}
381+
379382
//# longblobs are better at mixing character encoding. We don't know the encoding of anything we may want to store in cache
380383
//# before converting, it's quickest to clear the cache
381384
clearPageCache();

0 commit comments

Comments
 (0)