mirror of
https://github.com/getgrav/grav.git
synced 2026-03-01 18:11:25 +01:00
Fixed pages field escaping issues, needs admin update, too
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
# v1.6.31
|
||||
## mm/dd/2020
|
||||
|
||||
1. [](#bugfix)
|
||||
* Fixed `pages` field escaping issues, needs admin update, too [admin#1990](https://github.com/getgrav/grav-plugin-admin/issues/1990)
|
||||
|
||||
# v1.6.30
|
||||
## 12/03/2020
|
||||
|
||||
|
||||
@@ -688,7 +688,7 @@ class Pages
|
||||
}
|
||||
|
||||
/**
|
||||
* Get list of route/title of all pages.
|
||||
* Get list of route/title of all pages. Title is in HTML.
|
||||
*
|
||||
* @param PageInterface $current
|
||||
* @param int $level
|
||||
@@ -721,10 +721,10 @@ class Pages
|
||||
}
|
||||
|
||||
if ($showFullpath) {
|
||||
$option = $current->route();
|
||||
$option = htmlspecialchars($current->route());
|
||||
} else {
|
||||
$extra = $showSlug ? '(' . $current->slug() . ') ' : '';
|
||||
$option = str_repeat('—-', $level). '▸ ' . $extra . $current->title();
|
||||
$option = str_repeat('—-', $level). '▸ ' . $extra . htmlspecialchars($current->title());
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user