aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-03-17 00:13:47 -0700
committerfriendica <info@friendica.com>2015-03-17 00:13:47 -0700
commit7af012b1f95fb329c9bf127a60e0a383d853e37d (patch)
tree4416ebfbe92c35941601eb99efd310bc87d4c350 /mod/item.php
parentbc22df9057198018f9cc490d0e3e013692f52b90 (diff)
downloadvolse-hubzilla-7af012b1f95fb329c9bf127a60e0a383d853e37d.tar.gz
volse-hubzilla-7af012b1f95fb329c9bf127a60e0a383d853e37d.tar.bz2
volse-hubzilla-7af012b1f95fb329c9bf127a60e0a383d853e37d.zip
The random bad signatures are because something somewhere is trimming the body text. It could be any one of hundreds of functions that touch the message body. We really want to trim the body text, so I'm putting back all the trim statements - in mod/item and item_store and item_store_update. The last fix for random bad sigs noted that one of the trims wasn't there, so the others were removed. The correct fix is for all the trims to be there. We will probably have a few (quite a few) bad sigs during the transition back to trimmed text but this should nail it for anybody on recent code and with new content.
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/item.php b/mod/item.php
index 8b45f5db9..dad883f50 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -385,7 +385,7 @@ function item_post(&$a) {
$coord = notags(trim($_REQUEST['coord']));
$verb = notags(trim($_REQUEST['verb']));
$title = escape_tags(trim($_REQUEST['title']));
- $body = $_REQUEST['body'];
+ $body = trim($_REQUEST['body']);
$postopts = '';
$private = (