mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
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:
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user