From: Tim Düsterhus Date: Wed, 20 Jan 2021 16:03:14 +0000 (+0100) Subject: Fix pruning of ACP sessions X-Git-Tag: 5.4.0_Alpha_1~415 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2e2153387d9c52ee916685bb58e02b64b0b70846;p=GitHub%2FWoltLab%2FWCF.git Fix pruning of ACP sessions This fixes a copy and paste mistake in 6096fe159bbcae95b54abe0cfdb8eba0774dffc5. This mistake did not introduce a security issue, because the session timeout is also checked when loading the session, instead of just relying on the cronjob pruning the session. --- diff --git a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php index 95d3b8c941..4b66a5d232 100644 --- a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php +++ b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php @@ -1145,7 +1145,7 @@ final class SessionHandler extends SingletonFactory { public function prune() { // Prevent the sessions from expiring while the development mode is active. if (!ENABLE_DEBUG_MODE || !ENABLE_DEVELOPER_TOOLS) { - $sql = "DELETE FROM wcf".WCF_N."_user_session + $sql = "DELETE FROM wcf".WCF_N."_acp_session WHERE lastActivityTime < ?"; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute([