Skip to content

Commit

Permalink
fixed bug in router.
Browse files Browse the repository at this point in the history
  • Loading branch information
DorianGray committed Jan 29, 2012
1 parent 2460e0d commit 51ad213
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/Common/functions.inc.php
Expand Up @@ -45,6 +45,8 @@ function UriToArray(&$Uri)
{ {
$pathArray = explode('/', $Uri); $pathArray = explode('/', $Uri);
array_shift($pathArray); array_shift($pathArray);
$tempArray = explode('?', $pathArray[count($pathArray)-1]);
$pathArray[count($pathArray)-1] = $tempArray[0];
if(!end($pathArray)) if(!end($pathArray))
array_pop($pathArray); array_pop($pathArray);
return $pathArray; return $pathArray;
Expand Down

0 comments on commit 51ad213

Please sign in to comment.