From: Tim Düsterhus Date: Wed, 20 Jan 2021 09:06:43 +0000 (+0100) Subject: Fix the ACP session cookie value after WCFSetup X-Git-Tag: 5.4.0_Alpha_1~418 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0f2521d4cb0b4bb3ebc340dd9ee585aafb3e0fd0;p=GitHub%2FWoltLab%2FWCF.git Fix the ACP session cookie value after WCFSetup WCFSetup was not adjusted when making the changes to the cookie format. see 3b07fad7445f10555cc367eadedb9543565e4943 --- diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php index cdac84e79e..0f6ccff6af 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php @@ -242,7 +242,15 @@ class PackageInstallationDispatcher { 'acp_session', // We do not use the cache-timing safe class Hex, because we run the // function during the setup. - CryptoUtil::createSignedString(\hex2bin(WCF::getSession()->sessionID)) + CryptoUtil::createSignedString( + \pack( + 'CA20CN', + 1, + \hex2bin(WCF::getSession()->sessionID), + 0, + WCF::getUser()->userID + ) + ) ); if (WCF::getSession()->getVar('__wcfSetup_developerMode')) {