Skip to content

Commit

Permalink
Escape page title in pages field
Browse files Browse the repository at this point in the history
  • Loading branch information
mahagr committed Nov 16, 2020
1 parent b9ac46f commit d01c959
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Allow to fallback to `docs:` instead of `readme:`
* Backported finder/pages navigation from 1.10 (you will still need 1.10 for the fancy Parent Picker)
* Forward a `sid` to GPM when downloading a premium package
* Escape page title in `pages` field

# v1.9.17
## 10/07/2020
Expand Down
2 changes: 1 addition & 1 deletion themes/grav/templates/forms/fields/pages/pages.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{% endif %}

{% for page_route, option in pages_list %}
<option {% if page_route == value or (field.multiple and page_route in value) %}selected="selected"{% endif %} value="{{ page_route }}">{{ option|raw }}</option>
<option {% if page_route == value or (field.multiple and page_route in value) %}selected="selected"{% endif %} value="{{ page_route }}">{{ option }}</option>
{% endfor %}
{% endmacro %}

Expand Down

0 comments on commit d01c959

Please sign in to comment.