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:
zotlabs 2017-03-20 19:50:09 -07:00 committed by Mario Vavti
parent e97dd48b4c
commit d95f7efea7

View File

@ -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 />', '&lt;', '&gt;' ],["\n","\n", '<', '>'],$s);
return $s;
}