Fix XSS Breach in forum viewthread posts text

pull/3884/head
Renaud Lemaire 4 years ago
parent 7e3f9afbd1
commit 63bf4ad848
  1. 1
      main/forum/viewthread.php

@ -624,6 +624,7 @@ foreach ($posts as $post) {
$post['post_title'] .= Display::tag('div', $titlePost, ['class' => 'post-header']);
// the post body
$post['post_text'] = Security::remove_XSS($post['post_text']);
$post['post_data'] = Display::tag('div', $post['post_text'], ['class' => 'post-body']);
// The check if there is an attachment

Loading…
Cancel
Save