Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e746858

Browse files
committed
FIX default values in UriHelper::buildStringFromParts
1 parent 30b0877 commit e746858

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/utils/UriHelper.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public static function getPathInfo(?string $requestUri = null, ?string $scriptNa
212212

213213
public static function buildStringFromParts(array $uriParts): string
214214
{
215-
$join[] = $scheme = $uriParts['scheme'] ?? 'http';
215+
$join[] = $scheme = $uriParts['scheme'] ?? '';
216216
$join[] = '://';
217217
if (!empty($uriParts['user'])) {
218218
$join[] = $uriParts['user'];
@@ -221,7 +221,7 @@ public static function buildStringFromParts(array $uriParts): string
221221
}
222222
$join[] = '@';
223223
}
224-
$join[] = $uriParts['host'] ?? 'localhost';
224+
$join[] = $uriParts['host'] ?? '';
225225
if (isset($uriParts['port'])) {
226226
$port = $uriParts['port'];
227227
if (

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /