Issue 11182: prevent personal notes from being altered
This commit is contained in:
parent
b6aeb6e903
commit
60af1314a0
1 changed files with 38 additions and 35 deletions
|
@ -391,6 +391,8 @@ function item_post(App $a) {
|
|||
$only_to_forum = false;
|
||||
$forum_contact = [];
|
||||
|
||||
// Personal notes must never be altered to a forum post.
|
||||
if ($posttype != Item::PT_PERSONAL_NOTE) {
|
||||
$body = BBCode::performWithEscapedTags($body, ['noparse', 'pre', 'code', 'img'], function ($body) use ($profile_uid, $network, $str_contact_allow, &$inform, &$private_forum, &$private_id, &$only_to_forum, &$forum_contact) {
|
||||
$tags = BBCode::getTags($body);
|
||||
|
||||
|
@ -433,6 +435,7 @@ function item_post(App $a) {
|
|||
|
||||
return $body;
|
||||
});
|
||||
}
|
||||
|
||||
$original_contact_id = $contact_id;
|
||||
|
||||
|
|
Loading…
Reference in a new issue