]> git.mxchange.org Git - friendica.git/commitdiff
Remove useless HTML encode on item save
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 3 Jan 2020 01:38:07 +0000 (20:38 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Fri, 3 Jan 2020 01:38:07 +0000 (20:38 -0500)
mod/item.php

index b14da4604e7513d26a75fb9ca915360bea332e37..52ccdb338ae4d5de0b186c372a5e27b99bd0e054 100644 (file)
@@ -246,7 +246,7 @@ function item_post(App $a) {
                $app               = $orig_post['app'];
                $categories        = $orig_post['file'];
                $title             = Strings::escapeTags(trim($_REQUEST['title']));
-               $body              = Strings::escapeHtml(trim($body));
+               $body              = trim($body);
                $private           = $orig_post['private'];
                $pubmail_enabled   = $orig_post['pubmail'];
                $network           = $orig_post['network'];
@@ -285,7 +285,7 @@ function item_post(App $a) {
                $coord             = Strings::escapeTags(trim($_REQUEST['coord']    ?? ''));
                $verb              = Strings::escapeTags(trim($_REQUEST['verb']     ?? ''));
                $emailcc           = Strings::escapeTags(trim($_REQUEST['emailcc']  ?? ''));
-               $body              = Strings::escapeHtml(trim($body));
+               $body              = trim($body);
                $network           = Strings::escapeTags(trim(($_REQUEST['network']  ?? '') ?: Protocol::DFRN));
                $guid              = System::createUUID();