diff options
author | Andrew Dolgov <[email protected]> | 2007-05-19 17:28:10 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-05-19 17:28:10 +0100 |
commit | 546ffab4aae87668cade54be9132bc39e35d5670 (patch) | |
tree | 554ac9ff089ca57485907061cef8ed13d44ce3f0 /functions.php | |
parent | 474390311fd646db88acfdbff7dcc7c57ac7249e (diff) |
escape quotes in tag cloud
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/functions.php b/functions.php index ba4b02344..c8873a051 100644 --- a/functions.php +++ b/functions.php @@ -3966,8 +3966,10 @@ // 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> '; } |