diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-06-23 14:47:59 +1000 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-06-23 14:47:59 +1000 |
commit | 45d66657d747e106e451e9e0e2bea468b25eb973 (patch) | |
tree | 25d0ae48c9ce33c542f1165646d90ccc32f8957d | |
parent | d46f5467b330bd81b8221d6d6d994aafae30561f (diff) | |
parent | a189fc0872867e6692e02453fb2ea1ec95c0979c (diff) | |
download | volse-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.php | 4 |
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 |