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
The determination of PathInfo in the \Symfony\Component\HttpFoundation\Request class is not correct if the substring index.php is in the path.
I noticed this because the access control rule no longer works either.
How to reproduce
In my case, SCRIPT_FILENAME, SCRIPT_NAME and PHP_SELF are set as follows.
Symfony version(s) affected
7.4
Description
The determination of PathInfo in the
\Symfony\Component\HttpFoundation\Request
class is not correct if the substringindex.php
is in the path.I noticed this because the access control rule no longer works either.
How to reproduce
In my case,
SCRIPT_FILENAME
,SCRIPT_NAME
andPHP_SELF
are set as follows.with
index.php
getPathInfo()
returnsedia/image.jpg
with
index.phx
getPathInfo()
returns/path/index.php.media/image.jpg
(as expected)Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: