]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
use urlencode in tagcloud links 54/head
authornodiscc <nodiscc@gmail.com>
Sun, 9 Nov 2014 20:09:43 +0000 (21:09 +0100)
committernodiscc <nodiscc@gmail.com>
Sun, 9 Nov 2014 20:09:43 +0000 (21:09 +0100)
 * prevents unproper escaping of characters like '&'
 * fixes https://github.com/sebsauvage/Shaarli/issues/85
 * fixes https://github.com/shaarli/Shaarli/issues/48

tpl/tagcloud.html

index 6918c7be96d68421594325c6bbb3a2fc3e2c1d5f..0dd2c0d36f64d6afd1c02708f11a14bc4e3a1ccd 100644 (file)
@@ -6,7 +6,7 @@
 <center>
 <div id="cloudtag">
     {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}
 </div>
 </center>