From a0668c8bbba43cb8b3b28d5a75d7d48f321e30f5 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 3 Sep 2013 22:48:08 -0700 Subject: fix private message encryption since the input_filter mangled it --- mod/item.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mod/item.php') diff --git a/mod/item.php b/mod/item.php index da703e916..dc00efd35 100644 --- a/mod/item.php +++ b/mod/item.php @@ -611,6 +611,9 @@ function item_post(&$a) { $datarray['title'] = mb_substr($datarray['title'],0,255); if(array_key_exists('item_private',$datarray) && $datarray['item_private']) { + + $datarray['body'] = z_input_filter($datarray['uid'],$datarray['body'],$datarray['mimetype']); + logger('Encrypting local storage'); $key = get_config('system','pubkey'); $datarray['item_flags'] = $datarray['item_flags'] | ITEM_OBSCURED; -- cgit v1.2.3