From 047c320997881b8a46978d00e00a86608d11eb9f Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Mon, 3 Jul 2017 17:13:04 +0200 Subject: [PATCH] Escape the uri basename before using it in Twig --- CHANGELOG.md | 1 + themes/grav/templates/tools.html.twig | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 24e37971..d8bc5138 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/themes/grav/templates/tools.html.twig b/themes/grav/templates/tools.html.twig index 86c59edf..19c73298 100644 --- a/themes/grav/templates/tools.html.twig +++ b/themes/grav/templates/tools.html.twig @@ -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 %}