mirror of
https://github.com/dannyvankooten/AltoRouter.git
synced 2025-02-21 12:42:24 +01:00
commit
a0ecc77b0c
@ -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$`";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user