Skip to content

Commit

Permalink
Fixed pages field escaping issues, needs admin update, too
Browse files Browse the repository at this point in the history
  • Loading branch information
mahagr committed Dec 9, 2020
1 parent 29bcbf0 commit db24d3e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 3 additions & 3 deletions system/src/Grav/Common/Page/Pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ private static function getParents($rawRoutes)
}

/**
* 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
Expand Down Expand Up @@ -721,10 +721,10 @@ public function getList(PageInterface $current = null, $level = 0, $rawRoutes =
}

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());


}
Expand Down

0 comments on commit db24d3e

Please sign in to comment.