Skip to content

Commit

Permalink
Merge pull request #4492 from corentin-soriano/reset_session_upgrade
Browse files Browse the repository at this point in the history
Reset session before redirect to upgrade.php.
  • Loading branch information
nilsteampassnet authored Nov 26, 2024
2 parents d27ce7a + e0e54bd commit 6baa014
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@

// Quick major version check -> upgrade needed?
if (isset($SETTINGS['teampass_version']) === true && version_compare(TP_VERSION, $SETTINGS['teampass_version']) > 0) {
$session->invalidate();
// Perform redirection
if (headers_sent()) {
echo '<script language="javascript" type="text/javascript">document.location.replace("install/install.php");</script>';
Expand Down

0 comments on commit 6baa014

Please sign in to comment.