Skip to content

Commit d9a5a6d

Browse files
committed
fix: when URI string does not have path
1 parent 0eebc5e commit d9a5a6d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/HTTP/SiteURIFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function createFromString(string $uri): SiteURI
7070
$fragment = '#' . $parts['fragment'];
7171
}
7272

73-
$relativePath = $parts['path'] . $query . $fragment;
73+
$relativePath = ($parts['path'] ?? '') . $query . $fragment;
7474
$host = $this->getValidHost($parts['host']);
7575

7676
return new SiteURI($this->appConfig, $relativePath, $host, $parts['scheme']);

0 commit comments

Comments
 (0)