I am receiving an alert in JED Checker, the line of code that generates the alert contains str_replace which is used to replace of spaces with hyphens.
Here the code:
$uniqueFilter = array_unique($unique_filter); foreach ($uniqueFilter as $filter) { echo '<a href="#" class="filter-item" data-group=".'.str_replace(' ', '-', $filter).'">'.$filter.'</a>'; } I would like to know if str_replace or preg_replace is a danger and why they have it marked to generate an alert.