fix: ensure string type safety in Helper::getSubscribeUrl
This commit is contained in:
@@ -115,7 +115,7 @@ class Helper
|
|||||||
{
|
{
|
||||||
$path = route('client.subscribe', ['token' => $token], false);
|
$path = route('client.subscribe', ['token' => $token], false);
|
||||||
if (!$subscribeUrl) {
|
if (!$subscribeUrl) {
|
||||||
$subscribeUrls = explode(',', admin_setting('subscribe_url'));
|
$subscribeUrls = explode(',', (string)admin_setting('subscribe_url', ''));
|
||||||
$subscribeUrl = Arr::random($subscribeUrls);
|
$subscribeUrl = Arr::random($subscribeUrls);
|
||||||
$subscribeUrl = self::replaceByPattern($subscribeUrl);
|
$subscribeUrl = self::replaceByPattern($subscribeUrl);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user