Skip to content

Commit

Permalink
Merge pull request #2495 from QuizandSurveyMaster/CU-86curpua7-issue-…
Browse files Browse the repository at this point in the history
…with-category-limit

fixed esc issue
  • Loading branch information
zubairraeen authored Mar 14, 2024
2 parents aa84d58 + d8e8e45 commit 948ac24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion php/classes/class-qmn-quiz-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -1926,7 +1926,7 @@ public function submit_results( $qmn_quiz_options, $qmn_array_for_variables ) {
if ( 1 === intval( $qmn_quiz_options->store_responses ) && ! $qmn_array_for_variables['response_saved'] ) {
$result_display .= '<div class="qsm-result-page-warning">' . __('Your responses are not being saved in the database due to a technical issue. Please contact the website administrator for assistance.', 'quiz-master-next') . '</div>';
}
$result_display .= wp_kses_post( htmlspecialchars_decode( $results_pages['display'], ENT_QUOTES) );
$result_display .= $results_pages['display'];
$result_display = apply_filters( 'qmn_after_results_text', $result_display, $qmn_quiz_options, $qmn_array_for_variables );

$result_display .= $this->display_social( $qmn_quiz_options, $qmn_array_for_variables );
Expand Down
2 changes: 1 addition & 1 deletion php/classes/class-qsm-results-pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public static function generate_pages( $response_data ) {

// Decodes special characters, runs through our template
// variables, and then outputs the text.
$page = wp_kses_post( $content );
$page = wp_kses_post( htmlspecialchars_decode( $content, ENT_QUOTES) );

//last chance to filter $page
$page = apply_filters( 'qsm_template_variable_results_page', $page, $response_data );
Expand Down

0 comments on commit 948ac24

Please sign in to comment.