escape tags when using markdown. Strange things happen if you put HTML entities in the text.
This commit is contained in:
parent
414d86d3a9
commit
b9dffa9107
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user