e8653b9964
This PR was squashed before being merged into the 2.7 branch (closes #21968).
Discussion
----------
Fixed pathinfo calculation for requests starting with a question mark.
| Q | A
| ------------- | ---
| Branch? | 2.7
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #21967
| License | MIT
| Doc PR |
With improper `strpos` result check calculated pathinfo for requests starting with '?' equals to request itself.
Correct pathinfo for those requests should be '/'.
Commits
-------
|
||
---|---|---|
.. | ||
File | ||
Session | ||
AcceptHeaderItemTest.php | ||
AcceptHeaderTest.php | ||
ApacheRequestTest.php | ||
BinaryFileResponseTest.php | ||
CookieTest.php | ||
ExpressionRequestMatcherTest.php | ||
FileBagTest.php | ||
HeaderBagTest.php | ||
IpUtilsTest.php | ||
JsonResponseTest.php | ||
ParameterBagTest.php | ||
RedirectResponseTest.php | ||
RequestMatcherTest.php | ||
RequestStackTest.php | ||
RequestTest.php | ||
ResponseHeaderBagTest.php | ||
ResponseTest.php | ||
ResponseTestCase.php | ||
ServerBagTest.php | ||
StreamedResponseTest.php |