summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tagadelic.module6
1 files changed, 5 insertions, 1 deletions
diff --git a/tagadelic.module b/tagadelic.module
index 2ce7b02..5b61758 100644
--- a/tagadelic.module
+++ b/tagadelic.module
@@ -146,7 +146,11 @@ function tagadelic_page_list($vocs) {
foreach ($vocs as $vid) {
$vocabulary = taxonomy_vocabulary_load($vid);
-
+
+ //Clean out vocabulary, so that we don't have to leave security to our theme layer.
+ $vocabulary->description = filter_xss_admin($vocabulary->description);
+ $vocabulary->name = filter_xss_admin($vocabulary->name);
+
$tags = tagadelic_get_weighted_tags(array($vocabulary->vid), variable_get('tagadelic_levels', 6), variable_get('tagadelic_page_amount', '60'));
$tags = tagadelic_sort_tags($tags);