diff options
| author | Shyam Sunder <sgsunder1@gmail.com> | 2021-04-22 13:43:21 -0400 |
|---|---|---|
| committer | Shyam Sunder <sgsunder1@gmail.com> | 2021-04-22 13:43:21 -0400 |
| commit | ca771495979b035ac670b850b10239b6e4f10dcc (patch) | |
| tree | 219af70e5fe29c943def69e60b4f54016c850607 /client/html | |
| parent | 535aa0d8fef2d6e39233977d11b65c3996a99096 (diff) | |
| parent | 4ce72fa712918934fec019743dabc3387b2b6bcc (diff) | |
client: escape periods in tag names
Merges PR #390
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> |