use urlencode in tagcloud links

* prevents unproper escaping of characters like '&'
 * fixes https://github.com/sebsauvage/Shaarli/issues/85
 * fixes https://github.com/shaarli/Shaarli/issues/48
This commit is contained in:
nodiscc 2014-11-09 21:09:43 +01:00
parent dffa06ed61
commit 0845fb1ab8

View file

@ -6,7 +6,7 @@
<center> <center>
<div id="cloudtag"> <div id="cloudtag">
{loop="tags"} {loop="tags"}
<span style="color:#99f; font-size:9pt; padding-left:5px; padding-right:2px;">{$value.count}</span><a href="?searchtags={$key|htmlspecialchars}" style="font-size:{$value.size}pt; font-weight:bold; color:black; text-decoration:none">{$key|htmlspecialchars}</a> <span style="color:#99f; font-size:9pt; padding-left:5px; padding-right:2px;">{$value.count}</span><a href="?searchtags={$key|urlencode}" style="font-size:{$value.size}pt; font-weight:bold; color:black; text-decoration:none">{$key|htmlspecialchars}</a>
{/loop} {/loop}
</div> </div>
</center> </center>