mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Fixed escaping in PageIndex::getLevelListing()
This commit is contained in:
parent
c6704d8129
commit
49087e9a53
|
|
@ -1,3 +1,9 @@
|
|||
# v1.7.21
|
||||
## mm/dd/2021
|
||||
|
||||
1. [](#bugfix)
|
||||
* Fixed escaping in PageIndex::getLevelListing()
|
||||
|
||||
# v1.7.20
|
||||
## 09/01/2021
|
||||
|
||||
|
|
|
|||
|
|
@ -674,12 +674,12 @@ class PageIndex extends FlexPageIndex implements PageCollectionInterface
|
|||
$count = $filters ? $tmp->filterBy($filters, true)->count() : null;
|
||||
$route = $child->getRoute();
|
||||
$payload = [
|
||||
'item-key' => basename($child->rawRoute() ?? $child->getKey()),
|
||||
'item-key' => htmlspecialchars(basename($child->rawRoute() ?? $child->getKey())),
|
||||
'icon' => $icon,
|
||||
'title' => htmlspecialchars($child->menu()),
|
||||
'route' => [
|
||||
'display' => ($route ? ($route->toString(false) ?: '/') : null) ?? '',
|
||||
'raw' => $child->rawRoute(),
|
||||
'display' => htmlspecialchars(($route ? ($route->toString(false) ?: '/') : null) ?? ''),
|
||||
'raw' => htmlspecialchars($child->rawRoute()),
|
||||
],
|
||||
'modified' => $this->jsDate($child->modified()),
|
||||
'child_count' => $child_count ?: null,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user