From 0f2521d4cb0b4bb3ebc340dd9ee585aafb3e0fd0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 20 Jan 2021 10:06:43 +0100 Subject: [PATCH] Fix the ACP session cookie value after WCFSetup WCFSetup was not adjusted when making the changes to the cookie format. see 3b07fad7445f10555cc367eadedb9543565e4943 --- .../package/PackageInstallationDispatcher.class.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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')) { -- 2.20.1