From: Alexandre Alapetite Date: Fri, 16 Nov 2018 23:23:59 +0000 (+0100) Subject: Fix lack of HTML encoding for stylesheet link X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e45d32d5a50857e8408917e2035c9abe1704fb23;p=friendica.git Fix lack of HTML encoding for stylesheet link Previous to the fix, the home page had a line like (notice the wrongly encoded `&`): ```html ``` --- diff --git a/src/App.php b/src/App.php index 4451013093..013c12b908 100644 --- a/src/App.php +++ b/src/App.php @@ -116,7 +116,7 @@ class App public function registerStylesheet($path) { $url = str_replace($this->getBasePath() . DIRECTORY_SEPARATOR, '', $path); - + $url = htmlspecialchars($url, ENT_COMPAT, 'UTF-8'); $this->stylesheets[] = trim($url, '/'); }