aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-09-03 22:48:08 -0700
committerfriendica <info@friendica.com>2013-09-03 22:48:08 -0700
commita0668c8bbba43cb8b3b28d5a75d7d48f321e30f5 (patch)
treeea5e16bd0a885afe2983d7e924a49ea798ec7adf /mod
parentab1c9dc9c9ecc1f382b6c7512b014c11f08b6e5e (diff)
downloadvolse-hubzilla-a0668c8bbba43cb8b3b28d5a75d7d48f321e30f5.tar.gz
volse-hubzilla-a0668c8bbba43cb8b3b28d5a75d7d48f321e30f5.tar.bz2
volse-hubzilla-a0668c8bbba43cb8b3b28d5a75d7d48f321e30f5.zip
fix private message encryption since the input_filter mangled it
Diffstat (limited to 'mod')
-rw-r--r--mod/item.php3
1 files changed, 3 insertions, 0 deletions
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;