From 72fbbcd6794facea2cf06d9742359d190257b00f Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 6 Oct 2020 17:30:18 +0200 Subject: Security: fix multiple XSS vulnerabilities + fix search tags with special chars XSS vulnerabilities fixed in editlink, linklist, tag.cloud and tag.list. Also fixed tag search with special characters: urlencode function needs to be applied on raw data, before espaping, otherwise the rendered URL is wrong. --- tpl/default/linklist.html | 4 ++-- tpl/default/tag.cloud.html | 6 +++--- tpl/default/tag.list.html | 10 +++++----- 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'tpl') diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html index 2475f5fd..b08773d8 100644 --- a/tpl/default/linklist.html +++ b/tpl/default/linklist.html @@ -94,7 +94,7 @@ {'tagged'|t} {loop="$exploded_tags"} - + {$value} @@ -183,7 +183,7 @@ {$tag_counter=count($value.taglist)} {loop="value.taglist"} - {$value} + {$value} {if="$tag_counter - 1 != $counter"}·{/if} {/loop} diff --git a/tpl/default/tag.cloud.html b/tpl/default/tag.cloud.html index 024882ec..c067e1d4 100644 --- a/tpl/default/tag.cloud.html +++ b/tpl/default/tag.cloud.html @@ -15,7 +15,7 @@

{'Tag cloud'|t} - {$countTags} {'tags'|t}

{if="!empty($search_tags)"}

- + {'List all links with those tags'|t}

@@ -48,8 +48,8 @@
{loop="tags"} - {$key}{$value.count} + {$key}{$value.count} {loop="$value.tag_plugin"} {$value} {/loop} diff --git a/tpl/default/tag.list.html b/tpl/default/tag.list.html index 99ae44d2..96e7fbe0 100644 --- a/tpl/default/tag.list.html +++ b/tpl/default/tag.list.html @@ -15,7 +15,7 @@

{'Tag list'|t} - {$countTags} {'tags'|t}

{if="!empty($search_tags)"}

- + {'List all links with those tags'|t}

@@ -47,17 +47,17 @@
{loop="tags"} -
+
{if="$is_logged_in===true"}    - + {/if} - {$value} - {$key} + {$value} + {$key} {loop="$value.tag_plugin"} {$value} -- cgit v1.2.3