Router, once again

This commit is contained in:
Thomas Gelf 2014-03-27 20:00:43 +00:00
parent 0c9695992f
commit ade2121302
1 changed files with 2 additions and 2 deletions

View File

@ -24,10 +24,10 @@ if (substr($ruri, 0, strlen($remove)) !== $remove) {
return false;
}
$ruri = substr($ruri, strlen($remove));
$ruri = ltrim(substr($ruri, strlen($remove)), '/');
if (strpos($ruri, '?') === false) {
$params = '';
$path = ltrim($ruri, '/');
$path = $ruri;
} else {
list($path, $params) = preg_split('/\?/', $ruri, 2);
}