Skip to content

Commit

Permalink
[-] BO : Avoid slash in special product name
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricfontaine committed Jan 22, 2015
1 parent c237427 commit 57cc2ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/Referrer.php
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ public static function getAjaxProduct($id_referrer, $id_product, $employee = nul

$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'],
Expand All @@ -354,4 +354,4 @@ public static function getAjaxProduct($id_referrer, $id_product, $employee = nul

die ('['.Tools::jsonEncode($json_array).']');
}
}
}

0 comments on commit 57cc2ed

Please sign in to comment.