Skip to content

Commit

Permalink
Fixed issue #16745: Title for ranking question gets codes instead of …
Browse files Browse the repository at this point in the history
…quotes

Dev: gT for html like htmlspecialchars for user entred setting
  • Loading branch information
Shnoulle committed Oct 16, 2020
1 parent b43c81d commit bcebfe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/helpers/qanda_helper.php
Expand Up @@ -1894,12 +1894,12 @@ function do_ranking($ia)
if (trim($aQuestionAttributes['choice_title'][App()->language]) != '') {
$choice_title = htmlspecialchars(trim($aQuestionAttributes['choice_title'][App()->language]), ENT_QUOTES);
} else {
$choice_title = gT("Your Choices", 'js');
$choice_title = gT("Your Choices", 'html');
}
if (trim($aQuestionAttributes['rank_title'][App()->language]) != '') {
$rank_title = htmlspecialchars(trim($aQuestionAttributes['rank_title'][App()->language]), ENT_QUOTES);
} else {
$rank_title = gT("Your Ranking", 'js');
$rank_title = gT("Your Ranking", 'html');
}

$answer .= doRender('/survey/questions/answer/ranking/answer', array(
Expand Down

0 comments on commit bcebfe8

Please sign in to comment.