Skip to content

Commit d01c959

Browse files
committed
Escape page title in pages field
1 parent b9ac46f commit d01c959

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* Allow to fallback to `docs:` instead of `readme:`
77
* Backported finder/pages navigation from 1.10 (you will still need 1.10 for the fancy Parent Picker)
88
* Forward a `sid` to GPM when downloading a premium package
9+
* Escape page title in `pages` field
910

1011
# v1.9.17
1112
## 10/07/2020

themes/grav/templates/forms/fields/pages/pages.html.twig

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
{% endif %}
1111

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

0 commit comments

Comments
 (0)