From: Tim Düsterhus Date: Wed, 16 Jan 2013 20:01:59 +0000 (+0100) Subject: Set user to guest before deleting session. X-Git-Tag: 2.0.0_Beta_1~558 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9b1e73a71f266430edb0836d850e56407ede7101;p=GitHub%2FWoltLab%2FWCF.git Set user to guest before deleting session. --- diff --git a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php index e53ea02af3..00108f2e8a 100644 --- a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php +++ b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php @@ -552,6 +552,9 @@ class SessionHandler extends SingletonFactory { * Deletes this session and it's related data. */ public function delete() { + // set user to guest + $this->changeUser(new User(null), true); + // remove session $sessionEditor = new $this->sessionEditorClassName($this->session); $sessionEditor->delete();