Merge pull request #3884 from cbluesprl/cblue_forum_posts_xss

Fix XSS Breach in forum viewthread posts text
pull/3888/head
Julio Montoya 5 years ago committed by GitHub
commit 28255278c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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