mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-14 19:40:53 +08:00
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);
|
||||
if (!$subscribeUrl) {
|
||||
$subscribeUrls = explode(',', admin_setting('subscribe_url'));
|
||||
$subscribeUrls = explode(',', (string)admin_setting('subscribe_url', ''));
|
||||
$subscribeUrl = Arr::random($subscribeUrls);
|
||||
$subscribeUrl = self::replaceByPattern($subscribeUrl);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user