aboutsummaryrefslogtreecommitdiff
path: root/client/html
diff options
context:
space:
mode:
authorneobooru2021-04-10 15:10:39 +0200
committerneobooru2021-04-10 15:10:39 +0200
commit7c37734fec508f82f757c299175674b755d0ac71 (patch)
tree8c740dc802b76c1501712f4d3c1b5f34de233060 /client/html
parent545b5828b512f97a1782e99a2f2d825f48cbbd60 (diff)
client: rename escapeColons to escapeTagName and also escape dots
Diffstat (limited to 'client/html')
-rw-r--r--client/html/post_readonly_sidebar.tpl2
-rw-r--r--client/html/tag_delete.tpl2
-rw-r--r--client/html/tag_summary.tpl2
3 files changed, 3 insertions, 3 deletions
diff --git a/client/html/post_readonly_sidebar.tpl b/client/html/post_readonly_sidebar.tpl
index 178b1d2..cfbfd10 100644
--- a/client/html/post_readonly_sidebar.tpl
+++ b/client/html/post_readonly_sidebar.tpl
@@ -92,7 +92,7 @@
--></a><!--
--><% } %><!--
--><% if (ctx.canListPosts) { %><!--
- --><a href='<%- ctx.formatClientLink('posts', {query: ctx.escapeColons(tag.names[0])}) %>' class='<%= ctx.makeCssName(tag.category, 'tag') %>'><!--
+ --><a href='<%- ctx.formatClientLink('posts', {query: ctx.escapeTagName(tag.names[0])}) %>' class='<%= ctx.makeCssName(tag.category, 'tag') %>'><!--
--><% } %><!--
--><%- ctx.getPrettyName(tag.names[0]) %>&#32;<!--
--><% if (ctx.canListPosts) { %><!--
diff --git a/client/html/tag_delete.tpl b/client/html/tag_delete.tpl
index 2ea8cba..f420699 100644
--- a/client/html/tag_delete.tpl
+++ b/client/html/tag_delete.tpl
@@ -1,6 +1,6 @@
<div class='tag-delete'>
<form>
- <p>This tag has <a href='<%- ctx.formatClientLink('posts', {query: ctx.escapeColons(ctx.tag.names[0])}) %>'><%- ctx.tag.postCount %> usage(s)</a>.</p>
+ <p>This tag has <a href='<%- ctx.formatClientLink('posts', {query: ctx.escapeTagName(ctx.tag.names[0])}) %>'><%- ctx.tag.postCount %> usage(s)</a>.</p>
<ul class='input'>
<li>
diff --git a/client/html/tag_summary.tpl b/client/html/tag_summary.tpl
index 9929a44..06e2547 100644
--- a/client/html/tag_summary.tpl
+++ b/client/html/tag_summary.tpl
@@ -36,6 +36,6 @@
<section class='description'>
<hr/>
<%= ctx.makeMarkdown(ctx.tag.description || 'This tag has no description yet.') %>
- <p>This tag has <a href='<%- ctx.formatClientLink('posts', {query: ctx.escapeColons(ctx.tag.names[0])}) %>'><%- ctx.tag.postCount %> usage(s)</a>.</p>
+ <p>This tag has <a href='<%- ctx.formatClientLink('posts', {query: ctx.escapeTagName(ctx.tag.names[0])}) %>'><%- ctx.tag.postCount %> usage(s)</a>.</p>
</section>
</div>

© 2015 - 2026 Jakob L. Kreuze