Skip to content

Commit

Permalink
refactor: remove string array access
Browse files Browse the repository at this point in the history
It is difficult to understand.
  • Loading branch information
kenjis committed Jul 24, 2023
1 parent 78b0ac6 commit fde3216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/HTTP/SiteURIFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ private function parseRequestURI(): string

// Strip the SCRIPT_NAME path from the URI
if (
$path !== '' && isset($this->superglobals->server('SCRIPT_NAME')[0])
$path !== '' && $this->superglobals->server('SCRIPT_NAME') !== ''
&& pathinfo($this->superglobals->server('SCRIPT_NAME'), PATHINFO_EXTENSION) === 'php'
) {
// Compare each segment, dropping them until there is no match
Expand Down

0 comments on commit fde3216

Please sign in to comment.