Skip to content

Commit

Permalink
Merge pull request #10023 from xini/fix-destroy-session-on-logout
Browse files Browse the repository at this point in the history
  • Loading branch information
dhensby committed Jul 20, 2021
2 parents 4cd6b14 + 3e2ca30 commit 507c70e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Forms/HTMLEditor/TinyMCEConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ public function insertButtonsAfter($after, $buttons)

/**
* Remove the first occurrence of buttons
* @param string|string[] $buttons,... An array of strings, or one or more strings. The button names to remove.
* @param string|string[] $buttons,... An array of strings, or one or more strings. The button names to remove.
*/
public function removeButtons($buttons)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,6 @@ protected static function regenerateSessionId()
public function logOut(HTTPRequest $request = null)
{
$request = $request ?: Controller::curr()->getRequest();
$request->getSession()->restart($request);
$request->getSession()->destroy();
}
}

0 comments on commit 507c70e

Please sign in to comment.