diff options
author | Mario Vavti <mario@mariovavti.com> | 2015-06-23 13:06:40 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2015-06-23 13:06:40 +0200 |
commit | 30ba2803e7a4f9266fd72d19c54e1cb46190702a (patch) | |
tree | d522c292170fba4db6cee8505b5a1e1a19ba3803 /mod | |
parent | b6c4601d8fe96d53428697dd98d085f3602b2e6e (diff) | |
parent | 45d66657d747e106e451e9e0e2bea468b25eb973 (diff) | |
download | volse-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.php | 6 |
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']) { |