aboutsummaryrefslogtreecommitdiffstats
path: root/mod
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 /mod
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 'mod')
-rw-r--r--mod/item.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/item.php b/mod/item.php
index 3ff286268..8a73974c6 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -343,8 +343,8 @@ function item_post(&$a) {
$coord = $orig_post['coord'];
$verb = $orig_post['verb'];
$app = $orig_post['app'];
- $title = $_REQUEST['title'];
- $body = $_REQUEST['body'];
+ $title = escape_tags(trim($_REQUEST['title']));
+ $body = trim($_REQUEST['body']);
$item_flags = $orig_post['item_flags'];
// force us to recalculate if we need to obscure this post
@@ -798,7 +798,7 @@ function item_post(&$a) {
if(array_key_exists('item_private',$datarray) && $datarray['item_private']) {
- $datarray['body'] = z_input_filter($datarray['uid'],$datarray['body'],$datarray['mimetype']);
+ $datarray['body'] = trim(z_input_filter($datarray['uid'],$datarray['body'],$datarray['mimetype']));
if($uid) {
if($channel['channel_hash'] === $datarray['author_xchan']) {