Skip to content

Commit

Permalink
Reverse preg_replace() replacement because there was a limit in preg …
Browse files Browse the repository at this point in the history
…and it might cause trouble...
  • Loading branch information
frankmayer committed Oct 2, 2016
1 parent 2897582 commit 9cc93ed
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] = str_replace('/-/', ':', $segments[$i]);
$segments[$i] = preg_replace('/-/', ':', $segments[$i], 1);
}

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

0 comments on commit 9cc93ed

Please sign in to comment.