Fix pruning of ACP sessions
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 20 Jan 2021 16:03:14 +0000 (17:03 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 20 Jan 2021 16:03:14 +0000 (17:03 +0100)
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.

wcfsetup/install/files/lib/system/session/SessionHandler.class.php

index 95d3b8c9410a19389e9aacae8b8f0fd223125f5b..4b66a5d232138ed81ec06ad068a7c0232c933058 100644 (file)
@@ -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([