Escape titles in Flex pages list (flex-objects#84)

This commit is contained in:
Djamil Legato
2020-11-15 12:00:47 -08:00
parent de46afff1c
commit 1396525251
2 changed files with 2 additions and 1 deletions

View File

@@ -29,6 +29,7 @@
* Fixed potential fatal error when creating flex index using cache [#3062](https://github.com/getgrav/grav/issues/3062)
* Fixed fatal error in `CompiledFile` if the cached version is broken
* Fixed updated media missing from media when editing Flex Object after page reload
* Escape titles in Flex pages list [flex-objects#84](https://github.com/trilbymedia/grav-plugin-flex-objects/issues/84)
# v1.7.0-rc.17
## 10/07/2020

View File

@@ -489,7 +489,7 @@ class PageIndex extends FlexPageIndex implements PageCollectionInterface
$payload = [
'item-key' => basename($child->rawRoute() ?? $child->getKey()),
'icon' => $icon,
'title' => $child->menu(),
'title' => htmlspecialchars($child->menu()),
'route' => [
'display' => $child->getRoute()->toString(false) ?: '/',
'raw' => $child->rawRoute(),