fix: ensure string type safety in Helper::getSubscribeUrl

This commit is contained in:
xboard committed 2025-02-23 16:27:03 +08:00
1 parent bcdb8ff497
commit b910235eb7
1 file changed
+1 -1
+1 -1
View File
@@ -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);
}