aboutsummaryrefslogtreecommitdiffstats
path: root/include
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 /include
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 'include')
-rwxr-xr-xinclude/items.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index 66172ade3..c15bf8205 100755
--- a/include/items.php
+++ b/include/items.php
@@ -1398,15 +1398,15 @@ function item_store($arr,$allow_exec = false) {
$arr['item_flags'] = ((x($arr,'item_flags')) ? intval($arr['item_flags']) : 0 );
- $arr['body'] = z_input_filter($arr['uid'],$arr['body'],$arr['mimetype']);
$arr['title'] = escape_tags($arr['title']);
-
// only detect language if we have text content, and if the post is private but not yet
// obscured, make it so.
if(! ($arr['item_flags'] & ITEM_OBSCURED)) {
$arr['lang'] = detect_language($arr['body']);
+ // apply the input filter here - if it is obscured it has been filtered already
+ $arr['body'] = z_input_filter($arr['uid'],$arr['body'],$arr['mimetype']);
$allowed_languages = get_pconfig($arr['uid'],'system','allowed_languages');