diff options
| author | neobooru | 2021-04-10 15:10:39 +0200 |
|---|---|---|
| committer | neobooru | 2021-04-10 15:10:39 +0200 |
| commit | 7c37734fec508f82f757c299175674b755d0ac71 (patch) | |
| tree | 8c740dc802b76c1501712f4d3c1b5f34de233060 /client/html | |
| parent | 545b5828b512f97a1782e99a2f2d825f48cbbd60 (diff) | |
client: rename escapeColons to escapeTagName and also escape dots
Diffstat (limited to 'client/html')
| -rw-r--r-- | client/html/post_readonly_sidebar.tpl | 2 | ||||
| -rw-r--r-- | client/html/tag_delete.tpl | 2 | ||||
| -rw-r--r-- | client/html/tag_summary.tpl | 2 |
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]) %> <!-- --><% 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> |