We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c3e545d + edbd927 commit 7179fccCopy full SHA for 7179fcc
1 file changed
system/HTTP/IncomingRequest.php
@@ -721,7 +721,7 @@ protected function parseRequestURI(): string
721
$query = $parts['query'] ?? '';
722
$uri = $parts['path'] ?? '';
723
724
- if (isset($_SERVER['SCRIPT_NAME'][0]))
+ if (isset($_SERVER['SCRIPT_NAME'][0]) && pathinfo($_SERVER['SCRIPT_NAME'], PATHINFO_EXTENSION) === 'php')
725
{
726
// strip the script name from the beginning of the URI
727
if (strpos($uri, $_SERVER['SCRIPT_NAME']) === 0)
0 commit comments