slimphp / Slim

Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs.
http://slimframework.com
MIT License
11.98k stars 1.95k forks source link

$request->getQueryParams() should not contain question mark #1709

Closed shamotj closed 8 years ago

shamotj commented 8 years ago

I don't see any reason why getQueryParams method returns first parameter with question mark. Question mark is not part of query string, it just defines where it starts. I believe we should strip it.

geggleto commented 8 years ago

It does not ...

Please see this unit test. https://github.com/slimphp/Slim/blob/3.x/tests/Http/RequestTest.php#L537-L540

shamotj commented 8 years ago

My bad, I had error in my NGINX config. I had /index.php?_$isargs$args instead of _/index.php$isargs$args.

apolinux commented 1 year ago

My bad, I had error in my NGINX config. I had /index.php?_$isargs$args instead of _/index.php$isargs$args.

thanks for this tip. I have searched in many sites and the solution was very simple. thanks again.