PluginProbe
Survey Maker by AYS / 5.2.4.1
Survey Maker by AYS v5.2.4.1
5.2.4.1 5.2.4.0 5.2.3.9 5.2.3.8 5.2.3.7 5.2.3.6 5.2.3.5 5.2.3.4 5.2.3.3 5.2.3.2 5.2.3.1 5.2.3.0 5.2.2.9 5.2.2.8 5.2.2.7 5.2.2.6 5.2.2.5 5.2.2.4 5.2.2.3 5.2.2.2 5.2.2.1 5.2.2.0 5.2.1.9 5.2.1.8 5.2.0.8 All 154 releases
← All changes | public/partials/class-survey-maker-submissions-summary-shortcode.php +6 -6 5.2.2.3 → 5.2.4.1 View file →
@@ -233,10 +233,10 @@
233 233 $filtered_text_answers = array_values(array_unique($question_results[ $question['id'] ]['answers'][ $question['id'] ]));
234 234 foreach( $filtered_text_answers as $aid => $answer ):
235 235 $text_answer_count = isset($question_results[ $question['id'] ]['sum_of_same_answers'][$answer]) && $question_results[ $question['id'] ]['sum_of_same_answers'][$answer] != "" ? $question_results[ $question['id'] ]['sum_of_same_answers'][$answer] : "";
236 236 $content[] = '<div class="' . $this->html_class_prefix . 'submission-text-answer">
237 - <div>'. nl2br( htmlentities($answer) ) .'</div>
238 - <div>'. nl2br( $text_answer_count ) .'</div>
237 + <div>'. nl2br( esc_html( $answer ) ) .'</div>
238 + <div>'. esc_html( $text_answer_count ) .'</div>
239 239 </div>';
240 240
241 241 endforeach;
242 242 endif;
@@ -324,9 +324,9 @@
324 324 ksort($hours_array);
325 325 foreach( $hours_array as $k_hours => $v_hours ){
326 326
327 327 $content[] = '<div class="ays-survey-question-time-summary-row">';
328 - $content[] = '<div class="ays-survey-question-time-summary-hour"><span class="ays-survey-question-time-summary-hour-all">'.$k_hours.' :</span></div>';
328 + $content[] = '<div class="ays-survey-question-time-summary-hour"><span class="ays-survey-question-time-summary-hour-all">'. esc_html( $k_hours . ' :' ) .'</span></div>';
329 329 $content[] = '<div class="ays-survey-question-time-summary-hours">';
330 330 $content[] = '<div class="ays-survey-question-time-summary-hours-row">';
331 331 foreach( $v_hours as $k_hour => $count ){
332 332 if( $count == 1 ){
@@ -405,9 +405,9 @@
405 405
406 406 foreach($time_array[$new_date] as $f => $r){
407 407 if($r != '' && $r != '-'){
408 408
409 - $content[] = '<span class="ays-survey-question-date-time-summary-hour-all">'.$r.'</span>';
409 + $content[] = '<span class="ays-survey-question-date-time-summary-hour-all">'. esc_html( $r ) .'</span>';
410 410
411 411 }
412 412 }
413 413
@@ -431,10 +431,10 @@
431 431 $filtered_other_answers = array_values(array_unique($question_results[ $question['id'] ]['otherAnswers']));
432 432 foreach( $filtered_other_answers as $aid => $answer ):
433 433 $other_answer_count = isset($question_results[ $question['id'] ]['same_other_count'][$answer]) && $question_results[ $question['id'] ]['same_other_count'][$answer] != "" ? $question_results[ $question['id'] ]['same_other_count'][$answer] : "";
434 434 $content[] = '<div class="' . $this->html_class_prefix . 'submission-text-answer">
435 - <div>' . stripslashes(htmlentities($answer)) . '</div>
436 - <div>' . stripslashes($other_answer_count) . '</div>
435 + <div>' . esc_html( stripslashes( $answer ) ) . '</div>
436 + <div>' . esc_html( $other_answer_count ) . '</div>
437 437 </div>';
438 438 endforeach;
439 439 endif;
440 440 $content[] = '</div>';