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:
parent
a04c9ee81d
commit
972b3450cf
@ -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'])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user