aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRedMatrix <info@friendica.com>2015-02-12 20:06:38 +1100
committerRedMatrix <info@friendica.com>2015-02-12 20:06:38 +1100
commit9ae2fc8910f9fcade50a28d2feefc63777a6c7f4 (patch)
tree8a98852351f5782bee126b926b73ec4fbb1ad7fd
parent2b2fa5a973a2c2b97b2689b926fe2ae6bca3685d (diff)
parent6ec44793b34fb7473d5ccb7da7a7318daec8e415 (diff)
downloadvolse-hubzilla-9ae2fc8910f9fcade50a28d2feefc63777a6c7f4.tar.gz
volse-hubzilla-9ae2fc8910f9fcade50a28d2feefc63777a6c7f4.tar.bz2
volse-hubzilla-9ae2fc8910f9fcade50a28d2feefc63777a6c7f4.zip
Merge pull request #895 from solstag/sigfix
Dot not trim body in order to avoid issues with signature checks
-rwxr-xr-xinclude/items.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index deaed18e1..91fa1d70a 100755
--- a/include/items.php
+++ b/include/items.php
@@ -1945,7 +1945,7 @@ function item_store($arr,$allow_exec = false) {
$arr['title'] = ((array_key_exists('title',$arr) && strlen($arr['title'])) ? trim($arr['title']) : '');
- $arr['body'] = ((array_key_exists('body',$arr) && strlen($arr['body'])) ? trim($arr['body']) : '');
+ $arr['body'] = ((array_key_exists('body',$arr) && strlen($arr['body'])) ? $arr['body'] : '');
$arr['diaspora_meta'] = ((x($arr,'diaspora_meta')) ? $arr['diaspora_meta'] : '');
$arr['allow_cid'] = ((x($arr,'allow_cid')) ? trim($arr['allow_cid']) : '');
@@ -2451,7 +2451,7 @@ function item_store_update($arr,$allow_exec = false) {
$arr['item_private'] = ((array_key_exists('item_private',$arr)) ? intval($arr['item_private']) : $orig[0]['item_private']);
$arr['title'] = ((array_key_exists('title',$arr) && strlen($arr['title'])) ? trim($arr['title']) : '');
- $arr['body'] = ((array_key_exists('body',$arr) && strlen($arr['body'])) ? trim($arr['body']) : '');
+ $arr['body'] = ((array_key_exists('body',$arr) && strlen($arr['body'])) ? $arr['body'] : '');
$arr['attach'] = ((x($arr,'attach')) ? notags(trim($arr['attach'])) : $orig[0]['attach']);
$arr['app'] = ((x($arr,'app')) ? notags(trim($arr['app'])) : $orig[0]['app']);
// $arr['item_restrict'] = ((x($arr,'item_restrict')) ? intval($arr['item_restrict']) : $orig[0]['item_restrict'] );