Level 88
I think you can do this in your controller
public function get($string)
{
$string = preg_replace("%27", "/'/", $string);
}
I have a route that looks like this:
$app->get('/query/{name}', ....
And it works fine for this URL: http://mysite.com/query/o'connor
But fails to match for this URL http://mysite.com/query/o%27connor
It looks like the %27, which is percent-encoded just gets passthrough literally and is not treated like a single quote.
How can I get Lumen to handle percent-encoded URLs?
Thanks.
Please or to participate in this conversation.