Fix: removed unneeded HTML escaping
This commit is contained in:
parent
5cc2dc7ca3
commit
8e87c5f05f
|
@ -336,8 +336,6 @@ class HTML
|
||||||
|
|
||||||
$message = html_entity_decode($message, ENT_QUOTES, 'UTF-8');
|
$message = html_entity_decode($message, ENT_QUOTES, 'UTF-8');
|
||||||
|
|
||||||
$message = str_replace(["<"], ["<"], $message);
|
|
||||||
|
|
||||||
// remove quotes if they don't make sense
|
// remove quotes if they don't make sense
|
||||||
$message = preg_replace('=\[/quote\][\s]*\[quote\]=i', "\n", $message);
|
$message = preg_replace('=\[/quote\][\s]*\[quote\]=i', "\n", $message);
|
||||||
|
|
||||||
|
|
|
@ -2365,7 +2365,7 @@ class DFRN
|
||||||
$item["body"] = XML::getFirstNodeValue($xpath, "dfrn:env/text()", $entry);
|
$item["body"] = XML::getFirstNodeValue($xpath, "dfrn:env/text()", $entry);
|
||||||
$item["body"] = str_replace([' ',"\t","\r","\n"], ['','','',''], $item["body"]);
|
$item["body"] = str_replace([' ',"\t","\r","\n"], ['','','',''], $item["body"]);
|
||||||
// make sure nobody is trying to sneak some html tags by us
|
// 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"]);
|
$item["body"] = BBCode::limitBodySize($item["body"]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue