You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Just wondered if on the index page you can set the router to not allow any ? parameters and allow ?query=xxx but restrict what parameters are allowable.
e.g. $app->router->get('/test', [SiteController::class, 'test']);
mysite.com/test?dddd is currently accessible for any test?xxxxx
Can we restrict it to: mysite.com/test
Another page I would like it to read: mysite.com/blog?p=1
specifying only p as a query parameter.
The text was updated successfully, but these errors were encountered:
Hi,
Just wondered if on the index page you can set the router to not allow any
?
parameters and allow?query=xxx
but restrict what parameters are allowable.e.g.
$app->router->get('/test', [SiteController::class, 'test']);
mysite.com/test?dddd
is currently accessible for anytest?xxxxx
Can we restrict it to:
mysite.com/test
Another page I would like it to read:
mysite.com/blog?p=1
specifying only
p
as a query parameter.The text was updated successfully, but these errors were encountered: