aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-06-23 14:47:59 +1000
committerredmatrix <redmatrix@redmatrix.me>2015-06-23 14:47:59 +1000
commit45d66657d747e106e451e9e0e2bea468b25eb973 (patch)
tree25d0ae48c9ce33c542f1165646d90ccc32f8957d
parentd46f5467b330bd81b8221d6d6d994aafae30561f (diff)
parenta189fc0872867e6692e02453fb2ea1ec95c0979c (diff)
downloadvolse-hubzilla-45d66657d747e106e451e9e0e2bea468b25eb973.tar.gz
volse-hubzilla-45d66657d747e106e451e9e0e2bea468b25eb973.tar.bz2
volse-hubzilla-45d66657d747e106e451e9e0e2bea468b25eb973.zip
Merge pull request #356 from solstag/signature_edit_fix
properly trims edited posts before signing so signature verification …
-rw-r--r--mod/item.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/item.php b/mod/item.php
index 94e203788..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