From: Hypolite Petovan Date: Fri, 3 Jan 2020 01:38:07 +0000 (-0500) Subject: Remove useless HTML encode on item save X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=542e83137b0877964467717efb994440cd7cea86;p=friendica.git Remove useless HTML encode on item save --- diff --git a/mod/item.php b/mod/item.php index b14da4604e..52ccdb338a 100644 --- a/mod/item.php +++ b/mod/item.php @@ -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();