From 825cfe1b1b6f8f9b87072c92e99c94858d6f8acf Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Fri, 11 Dec 2015 12:19:55 +0100 Subject: [PATCH 1/2] Fix #12 Avoid double encoding comment text output and author name, already filtered and escaped when stored --- templates/partials/comments.html.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/partials/comments.html.twig b/templates/partials/comments.html.twig index 7a798e1..691dd86 100644 --- a/templates/partials/comments.html.twig +++ b/templates/partials/comments.html.twig @@ -35,9 +35,9 @@ {% for comment in grav.twig.comments|array_reverse %} - {{comment.text|e}} + {{comment.text}}
- {{'PLUGIN_COMMENTS.WRITTEN_ON'|t}} {{comment.date|e}} {{'PLUGIN_COMMENTS.BY'|t}} {{comment.author|e}} + {{'PLUGIN_COMMENTS.WRITTEN_ON'|t}} {{comment.date|e}} {{'PLUGIN_COMMENTS.BY'|t}} {{comment.author}} {% endfor %} From 6629b505f299760dd3f59b3b8db8c27fe5b01dc8 Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Fri, 11 Dec 2015 12:21:11 +0100 Subject: [PATCH 2/2] Prepare release --- CHANGELOG.md | 6 ++++++ blueprints.yaml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c820e1c..dfef2f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# v1.1.2 +## 12/11/2015 + +1. [](#improved) + Fix double escaping comments text and author + # v1.1.1 ## 12/10/2015 diff --git a/blueprints.yaml b/blueprints.yaml index 7416773..67e25a3 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -1,5 +1,5 @@ name: Comments -version: 1.1.1 +version: 1.1.2 description: Adds a commenting functionality to your site icon: comment author: