We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3e545d commit 02fb82fCopy full SHA for 02fb82f
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]) AND 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