core
core copied to clipboard
Please allow any values passed as url params
Flight::route('GET /p/@p', function($p)...
then I am trying to pass page URI as a parameter value:
$p = urlencode($_SERVER['REQUEST_URI'])
Flight fails with:
Object not found!
Regular expression also fails:
Flight::route('GET /p/@p:*', function($p)...
As I noticed only simple parameters are allowed, but if you need to pass encoded url or any other complex string it fails.
Thanks.
Sorry, I believe Apache is the reason but I have to make sure that any parameter will pass. And the reason mostlikely is the path format I am trying to use.