escape tags when using markdown. Strange things happen if you put HTML entities in the text.

This commit is contained in:
friendica 2014-08-14 18:00:48 -07:00
parent 414d86d3a9
commit b9dffa9107

View File

@ -430,8 +430,8 @@ function item_post(&$a) {
if($mimetype === 'text/bbcode') { if($mimetype === 'text/bbcode') {
if(local_user() && local_user() == $profile_uid && feature_enabled(local_user(),'markdown')) { if(local_user() && local_user() == $profile_uid && feature_enabled(local_user(),'markdown')) {
require_once('include/bb2diaspora.php'); require_once('include/bb2diaspora.php');
$body = diaspora2bb($body,true); $body = diaspora2bb(escape_tags($body),true);
} }