Updated value of the default cookie prefix
authorAlexander Ebert <ebert@woltlab.com>
Thu, 30 Nov 2017 12:16:48 +0000 (13:16 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 30 Nov 2017 13:20:13 +0000 (14:20 +0100)
See #2488

com.woltlab.wcf/option.xml
wcfsetup/install/files/lib/system/WCFSetup.class.php
wcfsetup/install/files/options.inc.php

index 0794ebb5b85a76c31c6e7f2752adf4d48d519fb0..41625adaf91f85f22741f3254e1d09dab42972b2 100644 (file)
@@ -610,7 +610,7 @@ private:wcf.acp.option.exception_privacy.private</selectoptions>
                        <option name="cookie_prefix">
                                <categoryname>general.system.cookie</categoryname>
                                <optiontype>text</optiontype>
-                               <defaultvalue>wsc30_</defaultvalue>
+                               <defaultvalue>wsc31_</defaultvalue>
                                <validationpattern>.+</validationpattern>
                        </option>
                        <!-- /general.system.cookie-->
index 8a130a10a1d0c8452efd02a0b4f34b518e85cee8..f83fd2bd7288b882b8bb34862289008a45193c68 100644 (file)
@@ -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) {
index 1c7e18cf6d8fb2e39d053898f36544b3be5ba6ae..58fa2e070580d726156733ec73fb5c0335730614 100644 (file)
@@ -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);