Skip to content

Commit 671cc82

Browse files
committed
fix: restore removed $config->baseURL check
1 parent e0a36ce commit 671cc82

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

system/Helpers/url_helper.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@ function _get_uri($relativePath = '', ?App $config = null): URI
3939
if ($config === null) {
4040
/** @var App $appConfig */
4141
$appConfig = config('App');
42+
43+
if ($appConfig->baseURL === '') {
44+
throw new InvalidArgumentException(
45+
'_get_uri() requires a valid baseURL.'
46+
);
47+
}
48+
} elseif ($config->baseURL === '') {
49+
throw new InvalidArgumentException(
50+
'_get_uri() requires a valid baseURL.'
51+
);
4252
}
4353

4454
// Convert array of segments to a string

0 commit comments

Comments
 (0)