Query strings in request URI are now ignored by router

feature/node-rewrite
Sven Slootweg 13 years ago
parent cb11da171b
commit d67dda9cae

@ -28,13 +28,15 @@ try
$sMainClass = "shift";
$router = new CPHPRouter();
$router->ignore_query = true;
$router->routes = array(
0 => array(
'^/([0-9]+)/?$' => "module.vps.overview.php",
'^/([0-9]+)/(start)/?$' => "module.vps.overview.php",
'^/([0-9]+)/(stop)/?$' => "module.vps.overview.php",
'^/([0-9]+)/(restart)/?$' => "module.vps.overview.php"
'^/([0-9]+)/(restart)/?$' => "module.vps.overview.php"
)
);

@ -46,6 +46,8 @@ $sError = null;
try
{
$mainrouter = new CPHPRouter();
$mainrouter->ignore_query = true;
$mainrouter->routes = array(
0 => array(

Loading…
Cancel
Save