aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-06-23 13:06:40 +0200
committerMario Vavti <mario@mariovavti.com>2015-06-23 13:06:40 +0200
commit30ba2803e7a4f9266fd72d19c54e1cb46190702a (patch)
treed522c292170fba4db6cee8505b5a1e1a19ba3803 /include/items.php
parentb6c4601d8fe96d53428697dd98d085f3602b2e6e (diff)
parent45d66657d747e106e451e9e0e2bea468b25eb973 (diff)
downloadvolse-hubzilla-30ba2803e7a4f9266fd72d19c54e1cb46190702a.tar.gz
volse-hubzilla-30ba2803e7a4f9266fd72d19c54e1cb46190702a.tar.bz2
volse-hubzilla-30ba2803e7a4f9266fd72d19c54e1cb46190702a.zip
Merge branch 'master' of https://github.com/redmatrix/redmatrix
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/items.php b/include/items.php
index eb4ad1ead..229512ead 100755
--- a/include/items.php
+++ b/include/items.php
@@ -423,7 +423,7 @@ function post_activity_item($arr) {
if(array_key_exists('item_private',$arr) && $arr['item_private']) {
- $arr['body'] = z_input_filter($arr['uid'],$arr['body'],$arr['mimetype']);
+ $arr['body'] = trim(z_input_filter($arr['uid'],$arr['body'],$arr['mimetype']));
if($channel) {
if($channel['channel_hash'] === $arr['author_xchan']) {
@@ -2064,7 +2064,7 @@ function item_store($arr, $allow_exec = false) {
$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']);
+ $arr['body'] = trim(z_input_filter($arr['uid'],$arr['body'],$arr['mimetype']));
if(local_channel() && (! $arr['sig'])) {
$channel = get_app()->get_channel();
@@ -2461,7 +2461,7 @@ function item_store_update($arr,$allow_exec = false) {
$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']);
+ $arr['body'] = trim(z_input_filter($arr['uid'],$arr['body'],$arr['mimetype']));
if(local_channel() && (! $arr['sig'])) {
$channel = get_app()->get_channel();