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:
Alexandre Alapetite 2018-11-17 00:23:59 +01:00
parent 460c257cb4
commit e45d32d5a5

View file

@ -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, '/');
}