Skip to content
Snippets Groups Projects
Commit 451852df authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2488886 by colinafoley, mikeker, joelpittet, Wim Leers: Forum - "new...

Issue #2488886 by colinafoley, mikeker, joelpittet, Wim Leers: Forum - "new replies" message is escaped
parent 1a71d3b3
No related branches found
No related tags found
No related merge requests found
......@@ -501,7 +501,12 @@ function template_preprocess_forums(&$variables) {
}
$row[] = array(
'data' => $topic->comment_count . $new_replies,
'data' => [
[
'#prefix' => $topic->comment_count,
'#markup' => $new_replies,
],
],
'class' => array('forum__replies'),
);
$row[] = array(
......
......@@ -514,6 +514,9 @@ function testForumWithNewPost() {
// Check that forum renders properly.
$this->drupalGet("forum/{$this->forum['tid']}");
$this->assertResponse(200);
// Verify there is no unintentional HTML tag escaping.
$this->assertNoEscaped('<', '');
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment