Skip to content

Commit 024bedf

Browse files
committed
Ensure URI parameters remain relative to subfolders
1 parent f210c22 commit 024bedf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

system/Helpers/url_helper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ function base_url($uri = '', string $protocol = null): string
106106
{
107107
$uri = implode('/', $uri);
108108
}
109+
$uri = trim($uri, '/');
109110

110111
// We should be using the configured baseURL that the user set;
111112
// otherwise get rid of the path, because we have

0 commit comments

Comments
 (0)