From: Hypolite Petovan Date: Fri, 3 Jan 2020 01:35:59 +0000 (-0500) Subject: Remove harmful HTML decode/encode in BBCode::scaleExternalImages X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0b3cd206c350dad7a244e519c115fa0c03256df4;p=friendica.git Remove harmful HTML decode/encode in BBCode::scaleExternalImages --- diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index 11caeb6ecb..4a2a75ece3 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -444,7 +444,7 @@ class BBCode } // Picture addresses can contain special characters - $s = htmlspecialchars_decode($srctext); + $s = $srctext; $matches = null; $c = preg_match_all('/\[img.*?\](.*?)\[\/img\]/ism', $s, $matches, PREG_SET_ORDER); @@ -501,8 +501,6 @@ class BBCode } } - // replace the special char encoding - $s = htmlspecialchars($s, ENT_NOQUOTES, 'UTF-8'); return $s; }