From c7f6663c367cca8be3343a695d3f5ed052d781a0 Mon Sep 17 00:00:00 2001 From: rr- Date: Thu, 23 Jun 2016 12:19:32 +0200 Subject: [PATCH] client/general: escape entity names in links --- client/html/comment.tpl | 4 ++-- client/html/comments_page.tpl | 2 +- client/html/post.tpl | 14 +++++++------- client/html/post_readonly_sidebar.tpl | 8 ++++---- client/html/posts_page.tpl | 4 ++-- client/html/tag.tpl | 8 ++++---- client/html/tag_category_row.tpl | 2 +- client/html/tag_delete.tpl | 2 +- client/html/user.tpl | 6 +++--- client/html/user_summary.tpl | 6 +++--- client/html/users_page.tpl | 4 ++-- client/js/util/views.js | 8 +++++--- 12 files changed, 35 insertions(+), 33 deletions(-) diff --git a/client/html/comment.tpl b/client/html/comment.tpl index 520d372..da91a03 100644 --- a/client/html/comment.tpl +++ b/client/html/comment.tpl @@ -1,7 +1,7 @@
<% if (ctx.comment.user.name && ctx.canViewUsers) { %> - + <% } %> <%= ctx.makeThumbnail(ctx.comment.user.avatarUrl) %> @@ -15,7 +15,7 @@
<% if (ctx.comment.user.name && ctx.canViewUsers) { %><% } %><%- ctx.comment.user.name %>
  • <% if (ctx.canViewPosts) { %><% } %><%= ctx.makeThumbnail(post.thumbnailUrl) %><% if (ctx.canViewPosts) { %><% for (let tag of ctx.post.tags) { %>
  • <% if (ctx.canViewTags) { %>'>'><% } %><% if (ctx.canListPosts) { %><% } %><% if (ctx.canListPosts) { %>'>'><% } %><%- tag %><% if (ctx.canListPosts) { %> diff --git a/client/html/tag_category_row.tpl b/client/html/tag_category_row.tpl index db89fa2..18897ea 100644 --- a/client/html/tag_category_row.tpl +++ b/client/html/tag_category_row.tpl @@ -17,7 +17,7 @@ <% if (ctx.tagCategory.name) { %> - + <%- ctx.tagCategory.tagCount %> <% } else { %> diff --git a/client/html/tag_delete.tpl b/client/html/tag_delete.tpl index d74ec5f..6f53c23 100644 --- a/client/html/tag_delete.tpl +++ b/client/html/tag_delete.tpl @@ -2,7 +2,7 @@
    <% if (ctx.tag.postCount) { %>

    For extra paranoia safety, only tags that are unused can be deleted.

    -

    Check which posts are tagged with <%- ctx.tag.names[0] %>.

    +

    Check which posts are tagged with <%- ctx.tag.names[0] %>.

    <% } else { %>