Skip to content

Commit 5b1b8a6

Browse files
authored
Merge pull request dokuwiki#4513 from fiwswe/remove_html_from_manifest
Remove HTML from strings based on title and tagline in manifest
2 parents 03fdedf + ffc5e5e commit 5b1b8a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

inc/Manifest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ public function sendManifest()
1515
$manifest['scope'] = DOKU_REL;
1616

1717
if (empty($manifest['name'])) {
18-
$manifest['name'] = $conf['title'];
18+
$manifest['name'] = strip_tags($conf['title']);
1919
}
2020

2121
if (empty($manifest['short_name'])) {
22-
$manifest['short_name'] = $conf['title'];
22+
$manifest['short_name'] = strip_tags($conf['title']);
2323
}
2424

2525
if (empty($manifest['description'])) {
26-
$manifest['description'] = $conf['tagline'];
26+
$manifest['description'] = strip_tags($conf['tagline']);
2727
}
2828

2929
if (empty($manifest['start_url'])) {

0 commit comments

Comments
 (0)