From 8e87c5f05f5934798f94b6074f03715a0e5e641c Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 7 Jan 2020 22:00:39 +0000 Subject: [PATCH] Fix: removed unneeded HTML escaping --- src/Content/Text/HTML.php | 2 -- src/Protocol/DFRN.php | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Content/Text/HTML.php b/src/Content/Text/HTML.php index a25883eb16..557e737096 100644 --- a/src/Content/Text/HTML.php +++ b/src/Content/Text/HTML.php @@ -336,8 +336,6 @@ class HTML $message = html_entity_decode($message, ENT_QUOTES, 'UTF-8'); - $message = str_replace(["<"], ["<"], $message); - // remove quotes if they don't make sense $message = preg_replace('=\[/quote\][\s]*\[quote\]=i', "\n", $message); diff --git a/src/Protocol/DFRN.php b/src/Protocol/DFRN.php index 798f607927..2202331b12 100644 --- a/src/Protocol/DFRN.php +++ b/src/Protocol/DFRN.php @@ -2365,7 +2365,7 @@ class DFRN $item["body"] = XML::getFirstNodeValue($xpath, "dfrn:env/text()", $entry); $item["body"] = str_replace([' ',"\t","\r","\n"], ['','','',''], $item["body"]); // make sure nobody is trying to sneak some html tags by us - $item["body"] = Strings::escapeTags(Strings::base64UrlDecode($item["body"])); + $item["body"] = Strings::base64UrlDecode($item["body"]); $item["body"] = BBCode::limitBodySize($item["body"]); -- 2.39.5