From 72e3e416780f56d7fe72b4884297a180d0e4e024 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Sun, 13 Dec 2020 00:32:27 +0000 Subject: [PATCH] twig autoescape --- templates/archive.html.twig | 8 ++++---- templates/blog.html.twig | 2 +- templates/default.html.twig | 4 ++-- templates/error.html.twig | 2 +- templates/formdata.html.twig | 2 +- templates/modular.html.twig | 8 ++++---- templates/modular/bottom.html.twig | 6 +++--- templates/modular/contact.html.twig | 4 ++-- templates/modular/features.html.twig | 2 +- templates/modular/form.html.twig | 2 +- templates/modular/portfolio.html.twig | 2 +- templates/modular/showcase.html.twig | 4 ++-- templates/modular/team.html.twig | 2 +- templates/modular/text.html.twig | 8 ++++---- templates/modular_alt.html.twig | 8 ++++---- templates/partials/blog_item.html.twig | 10 +++++----- templates/snipcart.html.twig | 2 +- 17 files changed, 38 insertions(+), 38 deletions(-) diff --git a/templates/archive.html.twig b/templates/archive.html.twig index 06ef034..24cbc6b 100644 --- a/templates/archive.html.twig +++ b/templates/archive.html.twig @@ -10,7 +10,7 @@ {% if base_url == base_url_relative %} {% set feed_url = base_url~'/'~page.slug %} {% endif %} - + {% block content %} {% set blog_image = page.media.images|first %} {% if blog_image %} @@ -18,15 +18,15 @@

{{ page.title }}

{% endif %} - +
- {{ page.content }} + {{ page.content|raw }} {% if config.plugins.taxonomylist.enabled %}

Archives by tags

{% include 'partials/taxonomylist.html.twig' with {'taxonomy':'tag'} %} {% endif %} - + {% if config.plugins.archives.enabled %}

Archives by month

{% include 'partials/archives.html.twig' %} diff --git a/templates/blog.html.twig b/templates/blog.html.twig index b97553d..fcb47d5 100644 --- a/templates/blog.html.twig +++ b/templates/blog.html.twig @@ -20,7 +20,7 @@ {% else %}
{% endif %} - {{ page.content }} + {{ page.content|raw }}
{% if config.plugins.breadcrumbs.enabled %} diff --git a/templates/default.html.twig b/templates/default.html.twig index 0e2a304..dbb3217 100644 --- a/templates/default.html.twig +++ b/templates/default.html.twig @@ -1,5 +1,5 @@ {% extends 'partials/base.html.twig' %} {% block content %} -

{{ page.content }}

-{% endblock %} \ No newline at end of file +

{{ page.content|raw }}

+{% endblock %} diff --git a/templates/error.html.twig b/templates/error.html.twig index 55913fa..80b164c 100644 --- a/templates/error.html.twig +++ b/templates/error.html.twig @@ -5,7 +5,7 @@

Error {{ page.header.http_response_code }}

- {{ page.content }} + {{ page.content|raw }}

diff --git a/templates/formdata.html.twig b/templates/formdata.html.twig index 5ba6495..13cb4c9 100644 --- a/templates/formdata.html.twig +++ b/templates/formdata.html.twig @@ -2,7 +2,7 @@ {% block content %}
- {{ content }} + {{ content|raw }}

{{ form.message }}

Here is the summary of what you wrote to us:

diff --git a/templates/modular.html.twig b/templates/modular.html.twig index 387a691..a478e94 100644 --- a/templates/modular.html.twig +++ b/templates/modular.html.twig @@ -30,7 +30,7 @@ {% block header_navigation %} {% if show_onpage_menu %}
{% endfor %} -
+ {% endif %} diff --git a/templates/modular/contact.html.twig b/templates/modular/contact.html.twig index c5cc084..99e3ef3 100644 --- a/templates/modular/contact.html.twig +++ b/templates/modular/contact.html.twig @@ -1,4 +1,4 @@ -
+
{% if config.plugins.simple_form.enabled %} @@ -7,7 +7,7 @@ {% endif %}
diff --git a/templates/modular/features.html.twig b/templates/modular/features.html.twig index 4a00606..6c6d1de 100644 --- a/templates/modular/features.html.twig +++ b/templates/modular/features.html.twig @@ -1,5 +1,5 @@
- {{ content }} + {{ content|raw }} {% for button in page.header.buttons %} {{ button.text }} {% endfor %} diff --git a/templates/modular/form.html.twig b/templates/modular/form.html.twig index 32d0092..b0c68c1 100644 --- a/templates/modular/form.html.twig +++ b/templates/modular/form.html.twig @@ -4,7 +4,7 @@ {% include "forms/form.html.twig" %}
diff --git a/templates/modular/portfolio.html.twig b/templates/modular/portfolio.html.twig index 3224583..1eb07e4 100644 --- a/templates/modular/portfolio.html.twig +++ b/templates/modular/portfolio.html.twig @@ -1,5 +1,5 @@
- {{ content }} + {{ content|raw }} {% if page.header.portfolio %}
{% for row in page.header.portfolio|batch(4) %} diff --git a/templates/modular/showcase.html.twig b/templates/modular/showcase.html.twig index 018fea6..69b8042 100644 --- a/templates/modular/showcase.html.twig +++ b/templates/modular/showcase.html.twig @@ -2,7 +2,7 @@
{% for slide in page.header.slides %}
-

{{ slide.heading }}

+

{{ slide.heading|raw }}

{{ slide.subheading }}

{{ slide.button_text }}
@@ -10,7 +10,7 @@
-{{ content }} +{{ content|raw }}