Commit 57cc2ed4 authored by cedricfontaine's avatar cedricfontaine

[-] BO : Avoid slash in special product name

parent c2374274
......@@ -336,7 +336,7 @@ class ReferrerCore extends ObjectModel
$json_array = array(
'id_product' => (int)$product->id,
'product_name' => addslashes($product->name),
'product_name' => htmlspecialchars($product->name),
'uniqs' => (int)$stats_visits['uniqs'],
'visitors' => (int)$stats_visits['visitors'],
'visits' => (int)$stats_visits['visits'],
......@@ -354,4 +354,4 @@ class ReferrerCore extends ObjectModel
die ('['.Tools::jsonEncode($json_array).']');
}
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment