Escape the uri basename before using it in Twig

This commit is contained in:
Flavio Copes
2017-07-03 17:13:04 +02:00
parent e42ed63577
commit 047c320997
2 changed files with 2 additions and 1 deletions

View File

@@ -16,6 +16,7 @@
* Fixed issue with min/max setting of list collections. Removing a list item would not refresh properly the count
* If folder is empty/not sent, fallback to page slug [#1146](https://github.com/getgrav/grav-plugin-admin/issues/1146)
* Escape the uri basename before using it in Twig
* Ignore missing Twig file in the Tools page
# v1.5.0-rc.3
## 06/22/2017

View File

@@ -22,7 +22,7 @@
{% block content %}
{% if authorize(['admin.tools', 'admin.super']) %}
{% include 'partials/tools-' ~ tools_slug ~ '.html.twig' %}
{% include 'partials/tools-' ~ tools_slug ~ '.html.twig' ignore missing %}
{% endif %}
{% endblock %}