Merge pull request #13025 from appwrite/cursor/appwrite-issue-triage-ea6c

fix: avoid explode(null) when _APP_DOMAIN_FUNCTIONS is unset
This commit is contained in:
Chirag Aggarwal authored and GitHub committed 2026-07-28 10:52:38 +05:30
commit 501e8f5d07
1 file changed
+1 -1
+1 -1
View File
@@ -126,7 +126,7 @@ function dispatch(\Swoole\Http\Server $server, int $fd, int $type, $data = null)
// executions request coming from custom domain
$risky = true;
} else {
foreach (\explode(',', System::getEnv('_APP_DOMAIN_FUNCTIONS')) as $riskyDomain) {
foreach (\explode(',', System::getEnv('_APP_DOMAIN_FUNCTIONS', '')) as $riskyDomain) {
if (empty($riskyDomain)) {
continue;
}