From: Niklas (Krymonota) Date: Thu, 6 Aug 2020 15:23:31 +0000 (+0200) Subject: Use generic value for default cookie prefix X-Git-Tag: 5.3.0_Alpha_1~87^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8f741dd58d640e5279ca71f9ab786766a731b7fc;p=GitHub%2FWoltLab%2FWCF.git Use generic value for default cookie prefix ... so that it doesn't have to be adjusted for new versions. --- diff --git a/com.woltlab.wcf/option.xml b/com.woltlab.wcf/option.xml index 967d643ddd..9fd0072be3 100644 --- a/com.woltlab.wcf/option.xml +++ b/com.woltlab.wcf/option.xml @@ -599,7 +599,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 89ced00ae4..2c2affebcf 100644 --- a/wcfsetup/install/files/lib/system/WCFSetup.class.php +++ b/wcfsetup/install/files/lib/system/WCFSetup.class.php @@ -1281,7 +1281,7 @@ class WCFSetup extends WCF { $useRandomCookiePrefix = false; } - $prefix = 'wsc52_'; + $prefix = 'wsc_'; if ($useRandomCookiePrefix) { $cookieNames = array_keys($_COOKIE); while (true) { diff --git a/wcfsetup/install/files/options.inc.php b/wcfsetup/install/files/options.inc.php index 546c4c658e..30931b0d70 100644 --- a/wcfsetup/install/files/options.inc.php +++ b/wcfsetup/install/files/options.inc.php @@ -8,7 +8,7 @@ */ define('LAST_UPDATE_TIME', TIME_NOW); -$prefix = 'wsc52_'; +$prefix = 'wsc_'; if (file_exists(WCF_DIR . 'cookiePrefix.txt')) { // randomized cookie prefix during setup $prefix = file_get_contents(WCF_DIR . 'cookiePrefix.txt');