Commit 7c06d91d authored by anthonylindsay's avatar anthonylindsay

Sanitize block heading on display.

parent 0df9ba30
......@@ -203,7 +203,7 @@ function commerce_popular_products_settings_form($form, &$form_state) {
$time = variable_get('commerce_popular_products_time', 'month');
$number = variable_get('commerce_popular_products_number', '1');
$products = variable_get('commerce_popular_products_products');
$title = variable_get('commerce_popular_products_title', 'Popular Products This Month');
$title = check_plain(variable_get('commerce_popular_products_title', 'Popular Products This Month'));
$product_types = commerce_popular_products_get_product_types();
$form['block_title'] = array(
'#type' => 'textfield',
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment