From 6ea129a9ef629d89b03d925925c0704d8eec586f Mon Sep 17 00:00:00 2001 From: rr- Date: Thu, 23 Jun 2016 11:41:52 +0200 Subject: [PATCH] client/views: escape HTML This lets client use < > in tag names. --- client/html/comment.tpl | 6 ++--- client/html/comment_form.tpl | 2 +- client/html/comments_page.tpl | 4 ++-- client/html/endless_pager_page.tpl | 2 +- client/html/fav.tpl | 2 +- client/html/file_dropper.tpl | 4 ++-- client/html/help_tos.tpl | 2 +- client/html/home.tpl | 4 ++-- client/html/home_stats.tpl | 2 +- client/html/manual_pager_nav.tpl | 6 ++--- client/html/not_found.tpl | 2 +- client/html/post.tpl | 14 +++++------ client/html/post_content.tpl | 10 ++++---- client/html/post_readonly_sidebar.tpl | 24 +++++++++---------- client/html/posts_header.tpl | 6 ++--- client/html/posts_page.tpl | 14 +++++------ client/html/score.tpl | 2 +- client/html/tag.tpl | 10 ++++---- client/html/tag_category_row.tpl | 12 +++++----- client/html/tag_delete.tpl | 2 +- client/html/tag_summary.tpl | 2 +- client/html/tags_page.tpl | 2 +- client/html/top_navigation.tpl | 4 ++-- client/html/user.tpl | 8 +++---- client/html/user_summary.tpl | 12 +++++----- client/html/users_page.tpl | 6 ++--- .../js/controls/tag_auto_complete_control.js | 3 ++- client/js/util/misc.js | 10 ++++++++ client/js/util/views.js | 5 ++-- 29 files changed, 97 insertions(+), 85 deletions(-) diff --git a/client/html/comment.tpl b/client/html/comment.tpl index 32eba69b..520d372b 100644 --- a/client/html/comment.tpl +++ b/client/html/comment.tpl @@ -1,7 +1,7 @@
diff --git a/client/html/comments_page.tpl b/client/html/comments_page.tpl index e580e641..57008b76 100644 --- a/client/html/comments_page.tpl +++ b/client/html/comments_page.tpl @@ -4,14 +4,14 @@ -->
  • <% if (ctx.canViewPosts) { %><% } %><%= ctx.makeThumbnail(post.thumbnailUrl) %><% if (ctx.canViewPosts) { %><% } %>
  • <% } %> diff --git a/client/html/endless_pager_page.tpl b/client/html/endless_pager_page.tpl index 93d2a3b9..9b1cf6cc 100644 --- a/client/html/endless_pager_page.tpl +++ b/client/html/endless_pager_page.tpl @@ -1,4 +1,4 @@
    - +
    diff --git a/client/html/fav.tpl b/client/html/fav.tpl index 28426e2b..d0f9664b 100644 --- a/client/html/fav.tpl +++ b/client/html/fav.tpl @@ -12,4 +12,4 @@ <% } %> add to favorites -<%= ctx.favoriteCount %> +<%- ctx.favoriteCount %> diff --git a/client/html/file_dropper.tpl b/client/html/file_dropper.tpl index 2543402e..0c052c1a 100644 --- a/client/html/file_dropper.tpl +++ b/client/html/file_dropper.tpl @@ -1,6 +1,6 @@
    - -