Merge pull request #576 from im-mi/fix-pool-description-code-injection
Update pool description formatter (code injection vulnerability)
This commit is contained in:
commit
29bdc5da22
@ -154,8 +154,9 @@ class PoolsTheme extends Themelet {
|
||||
}
|
||||
}
|
||||
|
||||
$bb = new BBCode();
|
||||
$page->add_block(new Block(html_escape($pool['title']), $bb->format($pool['description']), "main", 10));
|
||||
$tfe = new TextFormattingEvent($pool['description']);
|
||||
send_event($tfe);
|
||||
$page->add_block(new Block(html_escape($pool['title']), $tfe->formatted, "main", 10));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user