mirror of
https://github.com/dannyvankooten/AltoRouter.git
synced 2025-08-11 10:55:08 +02:00
fix for older PHP versions
This commit is contained in:
@@ -99,8 +99,8 @@ class AltoRouter {
|
||||
}
|
||||
|
||||
// Strip query string (?a=b) from Request Url
|
||||
if (false !== strpos($requestUrl, '?')) {
|
||||
$requestUrl = strstr($requestUrl, '?', true);
|
||||
if (($strpos = strpos($requestUrl, '?')) !== false) {
|
||||
$requestUrl = substr($requestUrl, $strpos +1);
|
||||
}
|
||||
|
||||
// set Request Method if it isn't passed as a parameter
|
||||
|
Reference in New Issue
Block a user