mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-03-10 15:08:13 -04:00
fix: ensure string type safety in Helper::getSubscribeUrl
This commit is contained in:
parent
925d7c2ad2
commit
08c12a7820
@ -115,7 +115,7 @@ class Helper
|
||||
{
|
||||
$path = route('client.subscribe', ['token' => $token], false);
|
||||
if (!$subscribeUrl) {
|
||||
$subscribeUrls = explode(',', admin_setting('subscribe_url'));
|
||||
$subscribeUrls = explode(',', (string)admin_setting('subscribe_url', ''));
|
||||
$subscribeUrl = Arr::random($subscribeUrls);
|
||||
$subscribeUrl = self::replaceByPattern($subscribeUrl);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user