1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-20 20:51:50 +01:00

Run Purifier on Markdown's output, stop XSS bug

This commit is contained in:
8chan 2015-03-29 15:32:14 -07:00
parent a04c9ee81d
commit 972b3450cf

View File

@ -3407,7 +3407,7 @@ function mod_edit_page($id) {
switch ($method) {
case 'markdown':
$write = markdown($content);
$write = purify_html(markdown($content));
break;
case 'html':
if (hasPermission($config['mod']['rawhtml'])) {