N°4286 Setup : fix loop in first steps

Setup token wasn't removed at the right place :/
This commit is contained in:
Pierre Goiffon
2021-11-18 08:54:10 +01:00
parent 51a49dfce8
commit 3e8dd2f4a5
2 changed files with 2 additions and 1 deletions

View File

@@ -147,7 +147,7 @@ header("Expires: Fri, 17 Jul 1970 05:00:00 GMT"); // Date in the past
$sOperation = Utils::ReadParam('operation', '');
try
{
SetupUtils::CheckSetupToken(true);
SetupUtils::CheckSetupToken();
switch($sOperation)
{

View File

@@ -2663,6 +2663,7 @@ class WizStepDone extends WizardStep
public function AsyncAction(WebPage $oPage, $sCode, $aParameters)
{
SetupUtils::EraseSetupToken();
// For security reasons: add the extension now so that this action can be used to read *only* .tar.gz files from the disk...
$sBackupFile = $aParameters['backup'].'.tar.gz';
if (file_exists($sBackupFile))