diff --git a/po/plume.pot b/po/plume.pot index 64032f48..e1599c75 100644 --- a/po/plume.pot +++ b/po/plume.pot @@ -60,13 +60,13 @@ msgstr "" msgid "Let's go!" msgstr "" -msgid "Welcome on {{ instance_name }}" +msgid "Welcome on {{ instance_name | escape }}" msgstr "" msgid "Notifications" msgstr "" -msgid "Written by {{ link_1 }}{{ url }}{{ link_2 }}{{ name }}{{ link_3 }}" +msgid "Written by {{ link_1 }}{{ url }}{{ link_2 }}{{ name | escape }}{{ link_3 }}" msgstr "" msgid "This article is under the {{ license }} license." @@ -180,7 +180,7 @@ msgstr "" msgid "Update account" msgstr "" -msgid "{{ name }}'s followers" +msgid "{{ name | escape }}'s followers" msgstr "" msgid "Followers" @@ -249,7 +249,7 @@ msgstr "" msgid "You need to be logged in order to edit your profile" msgstr "" -msgid "By {{ link_1 }}{{ link_2 }}{{ link_3 }}{{ name }}{{ link_4 }}" +msgid "By {{ link_1 }}{{ link_2 }}{{ link_3 }}{{ name | escape }}{{ link_4 }}" msgstr "" msgid "{{ data }} reshared your article" diff --git a/templates/instance/index.html.tera b/templates/instance/index.html.tera index 49b0958e..4ebec7a5 100644 --- a/templates/instance/index.html.tera +++ b/templates/instance/index.html.tera @@ -6,7 +6,7 @@ {% endblock title %} {% block content %} -

{{ "Welcome on {{ instance_name }}" | _(instance_name=instance.name) }}

+

{{ "Welcome on {{ instance_name | escape }}" | _(instance_name=instance.name) }}

{{ "Latest articles" | _ }}

diff --git a/templates/macros.html.tera b/templates/macros.html.tera index 4d50fa97..6a10d1ee 100644 --- a/templates/macros.html.tera +++ b/templates/macros.html.tera @@ -10,7 +10,7 @@

{{ article.post.content | safe | striptags | truncate(length=200) }}

- {{ "By {{ link_1 }}{{ link_2 }}{{ link_3 }}{{ name }}{{ link_4 }}" | _( + {{ "By {{ link_1 }}{{ link_2 }}{{ link_3 }}{{ name | escape }}{{ link_4 }}" | _( link_1='', diff --git a/templates/posts/details.html.tera b/templates/posts/details.html.tera index 2ec1d216..7fdf6e80 100644 --- a/templates/posts/details.html.tera +++ b/templates/posts/details.html.tera @@ -18,7 +18,7 @@ {% set name = author.username %} {% endif %} - {{ "Written by {{ link_1 }}{{ url }}{{ link_2 }}{{ name }}{{ link_3 }}" | _( + {{ "Written by {{ link_1 }}{{ url }}{{ link_2 }}{{ name | escape }}{{ link_3 }}" | _( link_1='', diff --git a/templates/users/followers.html.tera b/templates/users/followers.html.tera index 2b025b38..f563eafa 100644 --- a/templates/users/followers.html.tera +++ b/templates/users/followers.html.tera @@ -7,7 +7,7 @@ {% set name = user.username %} {% endif %} -{{ "{{ name }}'s followers" | _(name=name) }} +{{ "{{ name | escape }}'s followers" | _(name=name) }} {% endblock title %} {% block content %}