Skip to content

Commit

Permalink
Fixed issue: [security] Minor XSS vulnerability when editing a question
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Feb 19, 2023
1 parent 4d39d11 commit 7b2bcaa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions application/controllers/QuestionAdministrationController.php
Expand Up @@ -117,6 +117,9 @@ public function actionCreate($surveyid)
public function actionEdit(int $questionId, string $tabOverviewEditor = null)
{
$questionId = (int) $questionId;
if (!in_array($tabOverviewEditor, ['overview', 'editor'], true)) {
$tabOverviewEditor = null;
}

/** @var $question Question|null */
$question = Question::model()->findByPk($questionId);
Expand Down

0 comments on commit 7b2bcaa

Please sign in to comment.