aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorAlexandre Hannud Abdo <abdo@member.fsf.org>2015-06-23 01:08:02 -0300
committerAlexandre Hannud Abdo <abdo@member.fsf.org>2015-06-23 01:08:02 -0300
commita189fc0872867e6692e02453fb2ea1ec95c0979c (patch)
treeb008d4379c9417f759724456259336f8a263f474 /mod/item.php
parenta4775aab9b823523dd91246cbbb7fec3375b214d (diff)
downloadvolse-hubzilla-a189fc0872867e6692e02453fb2ea1ec95c0979c.tar.gz
volse-hubzilla-a189fc0872867e6692e02453fb2ea1ec95c0979c.tar.bz2
volse-hubzilla-a189fc0872867e6692e02453fb2ea1ec95c0979c.zip
properly trims edited posts before signing so signature verification works
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/item.php b/mod/item.php
index 3ff286268..9287081ef 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