Skip to content

Commit

Permalink
Replaced preg_replace() with str_replace()
Browse files Browse the repository at this point in the history
  • Loading branch information
frankmayer committed Oct 2, 2016
1 parent 9cfbd61 commit 6bf0c52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/com_finder/router.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function parse(&$segments)

for ($i = 0; $i < $total; $i++)
{
$segments[$i] = preg_replace('/-/', ':', $segments[$i], 1);
$segments[$i] = str_replace('/-/', ':', $segments[$i]);
}

// Check if the view segment is set and it equals search or advanced.
Expand Down

0 comments on commit 6bf0c52

Please sign in to comment.