after all of this, I would be very hesitant to use any multi-user system which uses markdown and which doesn't have a large security budget.
This commit is contained in:
parent
e97dd48b4c
commit
d95f7efea7
@ -82,7 +82,7 @@ class MarkdownSoap {
|
||||
$s = str_replace(' ',' ',$s);
|
||||
$s = purify_html($s);
|
||||
$s = str_replace([' ', mb_convert_encoding(' ','UTF-8','HTML-ENTITIES')], [ ' ', ' ' ],$s);
|
||||
$s = str_replace(['<br>','<br />'],["\n","\n"],$s);
|
||||
$s = str_replace(['<br>','<br />', '<', '>' ],["\n","\n", '<', '>'],$s);
|
||||
return $s;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user