From: Alexander Ebert Date: Thu, 30 Nov 2017 12:16:48 +0000 (+0100) Subject: Updated value of the default cookie prefix X-Git-Tag: 3.1.0_Beta_4~33 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=58decc1421135274511ce27fa1fdcbc9e14f423e;p=GitHub%2FWoltLab%2FWCF.git Updated value of the default cookie prefix See #2488 --- diff --git a/com.woltlab.wcf/option.xml b/com.woltlab.wcf/option.xml index 0794ebb5b8..41625adaf9 100644 --- a/com.woltlab.wcf/option.xml +++ b/com.woltlab.wcf/option.xml @@ -610,7 +610,7 @@ private:wcf.acp.option.exception_privacy.private diff --git a/wcfsetup/install/files/lib/system/WCFSetup.class.php b/wcfsetup/install/files/lib/system/WCFSetup.class.php index 8a130a10a1..f83fd2bd72 100644 --- a/wcfsetup/install/files/lib/system/WCFSetup.class.php +++ b/wcfsetup/install/files/lib/system/WCFSetup.class.php @@ -1221,7 +1221,7 @@ class WCFSetup extends WCF { } // determine randomized cookie prefix - $prefix = 'wsc30_'; + $prefix = 'wsc31_'; if (!self::$developerMode) { $cookieNames = array_keys($_COOKIE); while (true) { diff --git a/wcfsetup/install/files/options.inc.php b/wcfsetup/install/files/options.inc.php index 1c7e18cf6d..58fa2e0705 100644 --- a/wcfsetup/install/files/options.inc.php +++ b/wcfsetup/install/files/options.inc.php @@ -8,8 +8,9 @@ */ define('LAST_UPDATE_TIME', TIME_NOW); -$prefix = 'wsc30_'; +$prefix = 'wsc31_'; if (file_exists(WCF_DIR . 'cookiePrefix.txt')) { + // randomized cookie prefix during setup $prefix = file_get_contents(WCF_DIR . 'cookiePrefix.txt'); } define('COOKIE_PREFIX', $prefix);