Browse Source

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" />
```
pull/6147/head
Alexandre Alapetite 2 years ago
parent
commit
e45d32d5a5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/App.php

+ 1
- 1
src/App.php 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, '/');
}


Loading…
Cancel
Save