Fix lack of HTML encoding for stylesheet link
Previous to the fix, the home page had a line like (notice the wrongly encoded `&`): ```html <link rel="stylesheet" href="view/theme/frio/style.pcss?f=&puid=1" type="text/css" media="screen" /> ```
This commit is contained in:
parent
460c257cb4
commit
e45d32d5a5
|
@ -116,7 +116,7 @@ class App
|
||||||
public function registerStylesheet($path)
|
public function registerStylesheet($path)
|
||||||
{
|
{
|
||||||
$url = str_replace($this->getBasePath() . DIRECTORY_SEPARATOR, '', $path);
|
$url = str_replace($this->getBasePath() . DIRECTORY_SEPARATOR, '', $path);
|
||||||
|
$url = htmlspecialchars($url, ENT_COMPAT, 'UTF-8');
|
||||||
$this->stylesheets[] = trim($url, '/');
|
$this->stylesheets[] = trim($url, '/');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue