1
0
Fork 0

Issue 11182: prevent personal notes from being altered

This commit is contained in:
Michael 2022-01-25 17:52:53 +00:00
parent b6aeb6e903
commit 60af1314a0

View file

@ -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;