diff --git a/installation/controller/install/config.php b/installation/controller/install/config.php index 4cc8e1fbfa91b..8aeda6b004e87 100644 --- a/installation/controller/install/config.php +++ b/installation/controller/install/config.php @@ -30,7 +30,7 @@ public function execute() $app = $this->getApplication(); // Check for request forgeries. -// JSession::checkToken() or $app->sendJsonResponse(new Exception(JText::_('JINVALID_TOKEN'), 403)); + JSession::checkToken() or $app->sendJsonResponse(new Exception(JText::_('JINVALID_TOKEN'), 403)); // Get the options from the session $options = (new InstallationModelSetup)->getOptions(); diff --git a/installation/controller/install/database.php b/installation/controller/install/database.php index 207f4efd5eee4..308055399baf7 100644 --- a/installation/controller/install/database.php +++ b/installation/controller/install/database.php @@ -30,7 +30,7 @@ public function execute() $app = $this->getApplication(); // Check for request forgeries. - //JSession::checkToken() or $app->sendJsonResponse(new Exception(JText::_('JINVALID_TOKEN'), 403)); + JSession::checkToken() or $app->sendJsonResponse(new Exception(JText::_('JINVALID_TOKEN'), 403)); (new InstallationModelSetup)->checkForm('setup'); // Get the options from the session