aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-20 15:00:29 -0800
committerfriendica <info@friendica.com>2014-02-20 15:00:29 -0800
commit3bddaa9e0467de602be062c08dbb40eca65e9d1d (patch)
treebc5083be6dfdb2118c93b4b3f6155513e5fe931d
parente56abd17822a6f5bfba9756239d613eb6240c4c4 (diff)
downloadvolse-hubzilla-3bddaa9e0467de602be062c08dbb40eca65e9d1d.tar.gz
volse-hubzilla-3bddaa9e0467de602be062c08dbb40eca65e9d1d.tar.bz2
volse-hubzilla-3bddaa9e0467de602be062c08dbb40eca65e9d1d.zip
title missing in private mention posts
-rwxr-xr-xinclude/items.php4
-rw-r--r--mod/item.php2
2 files changed, 2 insertions, 4 deletions
diff --git a/include/items.php b/include/items.php
index 7e15e9411..1217616d7 100755
--- a/include/items.php
+++ b/include/items.php
@@ -1585,7 +1585,7 @@ function item_store($arr,$allow_exec = false) {
}
- $arr['title'] = ((x($arr,'title')) ? notags(trim($arr['title'])) : '');
+ $arr['title'] = ((x($arr,'title')) ? trim($arr['title']) : '');
$arr['body'] = ((x($arr,'body')) ? trim($arr['body']) : '');
$arr['allow_cid'] = ((x($arr,'allow_cid')) ? trim($arr['allow_cid']) : '');
@@ -1595,7 +1595,6 @@ function item_store($arr,$allow_exec = false) {
$arr['item_private'] = ((x($arr,'item_private')) ? intval($arr['item_private']) : 0 );
$arr['item_flags'] = ((x($arr,'item_flags')) ? intval($arr['item_flags']) : 0 );
- $arr['title'] = escape_tags($arr['title']);
// only detect language if we have text content, and if the post is private but not yet
@@ -1639,7 +1638,6 @@ function item_store($arr,$allow_exec = false) {
}
-
if((x($arr,'object')) && is_array($arr['object'])) {
activity_sanitise($arr['object']);
$arr['object'] = json_encode($arr['object']);
diff --git a/mod/item.php b/mod/item.php
index dc005bb20..2feb64a37 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -269,7 +269,7 @@ function item_post(&$a) {
$coord = $orig_post['coord'];
$verb = $orig_post['verb'];
$app = $orig_post['app'];
- $title = escape_tags(trim($_REQUEST['title']));
+ $title = $_REQUEST['title'];
$body = $_REQUEST['body'];
$private = $orig_post['item_private'];
$item_flags = $orig_post['item_flags'];