Skip to content

Commit fde3216

Browse files
committed
refactor: remove string array access
It is difficult to understand.
1 parent 78b0ac6 commit fde3216

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/HTTP/SiteURIFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ private function parseRequestURI(): string
131131

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

0 commit comments

Comments
 (0)