Skip to content

Commit

Permalink
Fixed issue #19593: List with comment double encoding comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnoulle committed Jun 26, 2024
1 parent 4dbd746 commit a154c5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function renderList($sCoreClasses)
'name' => $this->sSGQA . 'comment',
'tarows' => floor($tarows),
'has_comment_saved' => isset($_SESSION['survey_' . Yii::app()->getConfig('surveyID')][$fname2]) && $_SESSION['survey_' . Yii::app()->getConfig('surveyID')][$fname2],
'comment_saved' => htmlspecialchars($_SESSION['survey_' . Yii::app()->getConfig('surveyID')][$fname2]),
'comment_saved' => $_SESSION['survey_' . Yii::app()->getConfig('surveyID')][$fname2],
'java_name' => 'java' . $this->sSGQA,
'java_id' => 'java' . $this->sSGQA,
'java_value' => $this->mSessionValue
Expand Down Expand Up @@ -144,7 +144,7 @@ public function renderDropdown($sCoreClasses)
'label_text' => gT('Please enter your comment here'),
'tarows' => $tarows,
'maxoptionsize' => $this->maxoptionsize,
'comment_saved' => htmlspecialchars($_SESSION['survey_' . Yii::app()->getConfig('surveyID')][$fname2]),
'comment_saved' => $_SESSION['survey_' . Yii::app()->getConfig('surveyID')][$fname2],
'value' => $this->mSessionValue,
), true);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
id="answer{{ name }}comment"
rows="{{ tarows }}"
cols="{{ maxoptionsize }}"
>{{ comment_saved }}</textarea>
>{{ comment_saved|escape }}</textarea>

</div>
</div>

0 comments on commit a154c5c

Please sign in to comment.