From: Hypolite Petovan Date: Tue, 12 Mar 2024 20:42:00 +0000 (+0000) Subject: Escape HTML characters in profile RSS titles X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=aac5d41fd6d0f46e7cdb45466c5872b798f3d931;p=friendica.git Escape HTML characters in profile RSS titles Thanks to @r1pu5u for the tip left through the `security.txt` contact address! --- diff --git a/src/Module/Profile/Profile.php b/src/Module/Profile/Profile.php index 03ed3e3acf..afc65e8fe1 100644 --- a/src/Module/Profile/Profile.php +++ b/src/Module/Profile/Profile.php @@ -348,10 +348,10 @@ class Profile extends BaseProfile $htmlhead .= '' . "\n"; } - $htmlhead .= '' . "\n"; - $htmlhead .= '' . "\n"; - $htmlhead .= '' . "\n"; - $htmlhead .= '' . "\n"; + $htmlhead .= '' . "\n"; + $htmlhead .= '' . "\n"; + $htmlhead .= '' . "\n"; + $htmlhead .= '' . "\n"; $uri = urlencode('acct:' . $profile['nickname'] . '@' . $this->baseUrl->getHost() . ($this->baseUrl->getPath() ? '/' . $this->baseUrl->getPath() : '')); $htmlhead .= '' . "\n"; header('Link: <' . $this->baseUrl . '/xrd/?uri=' . $uri . '>; rel="lrdd"; type="application/xrd+xml"', false);