Skip to content

Commit

Permalink
Merge pull request #16 from joleksow/master
Browse files Browse the repository at this point in the history
Break after finding a redirectLocation
  • Loading branch information
rkingon committed Feb 6, 2016
2 parents 6794069 + 8c8bdb1 commit b38d0c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions redirectmanager/services/RedirectManagerService.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@ public function processRedirect($uri)
if ($regex_match) {
if(preg_match($record['uri'], $uri)){
$redirectLocation = preg_replace($record['uri'], $record['location'], $uri);
break;
}
} else {
// Standard match
if ($record['uri'] == $uri)
{
$redirectLocation = $record['location'];
break;
}
}
}
Expand Down

0 comments on commit b38d0c8

Please sign in to comment.