1
0
mirror of https://github.com/dannyvankooten/AltoRouter.git synced 2025-02-21 12:42:24 +01:00

Merge pull request #8 from niahoo/master

Strip the wrong way
This commit is contained in:
Danny van Kooten 2013-04-10 22:34:15 -07:00
commit a0ecc77b0c

View File

@ -13,7 +13,7 @@ class AltoRouter {
public function setBasePath($basePath) {
$this->basePath = $basePath;
}
/**
* Map a route to a target
*
@ -101,7 +101,7 @@ class AltoRouter {
// Strip query string (?a=b) from Request Url
if (($strpos = strpos($requestUrl, '?')) !== false) {
$requestUrl = substr($requestUrl, $strpos + 1);
$requestUrl = substr($requestUrl, 0, $strpos);
}
// set Request Method if it isn't passed as a parameter
@ -223,4 +223,4 @@ class AltoRouter {
}
return "`^$route$`";
}
}
}