summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Lindsay2014-09-29 09:31:06 (GMT)
committerAnthony Lindsay2014-09-29 09:31:06 (GMT)
commit216e324dd4e9b03eb8a4fb666aacef24a6bede39 (patch)
treef1fc3907be013cfa3c5992ce778ee01f6f2b7923
parent04b3f213bdbe5072172af15024d931e604e69379 (diff)
Sanitize block title on display
-rw-r--r--commerce_popular_products.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/commerce_popular_products.module b/commerce_popular_products.module
index 345d7ab..798adf9 100644
--- a/commerce_popular_products.module
+++ b/commerce_popular_products.module
@@ -134,7 +134,7 @@ function commerce_popular_products_block_view($delta = '') {
$block = array();
switch ($delta) {
case 'popular-product-block':
- $block['subject'] = variable_get('commerce_popular_products_title');
+ $block['subject'] = check_plain(variable_get('commerce_popular_products_title'));
$block['content'] = commerce_popular_products_get_content();
break;