aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-03-15 21:49:27 -0700
committerzotlabs <mike@macgirvin.com>2017-03-15 21:49:27 -0700
commitfb3f63bf596e77fe25c8b60c74651e39b62b1436 (patch)
treef30cc8ddfa6a3af36b844262248e9601e044cb1a /include/items.php
parentf6b643e84ee1ce8b4e13f959e0d58804f4aabd3b (diff)
downloadvolse-hubzilla-fb3f63bf596e77fe25c8b60c74651e39b62b1436.tar.gz
volse-hubzilla-fb3f63bf596e77fe25c8b60c74651e39b62b1436.tar.bz2
volse-hubzilla-fb3f63bf596e77fe25c8b60c74651e39b62b1436.zip
input filter issue
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index ace8b2fb2..c929bb378 100755
--- a/include/items.php
+++ b/include/items.php
@@ -532,6 +532,8 @@ function get_item_elements($x,$allow_code = false) {
$maxlen = get_max_import_size();
+ $arr['body'] = $x['body'];
+
if($maxlen && mb_strlen($arr['body']) > $maxlen) {
$arr['body'] = mb_substr($arr['body'],0,$maxlen,'UTF-8');
logger('get_item_elements: message length exceeds max_import_size: truncated');