]> git.wh0rd.org Git - tt-rss.git/commitdiff
escape quotes in tag cloud
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 19 May 2007 16:28:10 +0000 (17:28 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 19 May 2007 16:28:10 +0000 (17:28 +0100)
functions.php

index ba4b02344aafcb5f2c3a7434d5569e6b9fc7185d..c8873a051353451c5b5d3bbbb5567bbb3f2ec398 100644 (file)
                        // multiply by the font-size increment ($size)
                        // and add the $min_size set above
                        $size = round($min_size + (($value - $min_qty) * $step));
-                  
-                       echo "<a href=\"javascript:viewfeed('$key') \" style=\"font-size: " . 
+
+                       $key_escaped = str_replace("'", "\\'", $key);
+
+                       echo "<a href=\"javascript:viewfeed('$key_escaped') \" style=\"font-size: " . 
                                $size . "px\" title=\"$value articles tagged with " . 
                                $key . '">' . $key . '</a> ';
                }