Fixed escaping in PageIndex::getLevelListing()

This commit is contained in:
Matias Griese 2021-09-02 10:20:26 +03:00
parent c6704d8129
commit 49087e9a53
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
# v1.7.21
## mm/dd/2021
1. [](#bugfix)
* Fixed escaping in PageIndex::getLevelListing()
# v1.7.20
## 09/01/2021

View File

@ -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,