Skip to content

Commit

Permalink
Security fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed May 17, 2022
1 parent fe386fe commit 8d32d7b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Classes/Controller/EzbController.php
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,16 @@ public function displayParticipantsFormAction() {
$params = \TYPO3\CMS\Core\Utility\GeneralUtility::_GPmerged('libconnect');
}

//error - wrong jourid
if(!is_numeric($params['jourid']) || is_empty($params['jourid'])){
//change view
$controllerContext = $this->buildControllerContext();
$controllerContext->getRequest()->setControllerActionName('displayError');
$this->view->setControllerContext($controllerContext);

return;
}

$ParticipantsList = $this->ezbRepository->getParticipantsList($params['jourid']);

$config['partnerPid'] = 0;
Expand Down
4 changes: 4 additions & 0 deletions Resources/Private/Templates/Ezb/DisplayError.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<f:layout name="Default" />
<f:section name="main">

</f:section>

0 comments on commit 8d32d7b

Please sign in to comment.