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 6c6f1fa

Browse files
committed
FIX path slashes building uri string
1 parent 18743be commit 6c6f1fa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎src/utils/UriHelper.php‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,8 @@ public static function buildStringFromParts(array $uriParts): string
235235
$join[] = ":{$port}";
236236
}
237237
}
238-
$join[] = '/';
239238
if (!empty($uriParts['path'])) {
240-
$join[] = ltrim($uriParts['path'], '/');
239+
$join[] = preg_replace('/^\/+/', '/', $uriParts['path']);
241240
}
242241
if (!empty($uriParts['query'])) {
243242
$join[] = "?{$uriParts['query']}";

0 commit comments

Comments
(0)

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