An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix(api): domain check when updating domain
sistracia43e8d1719730
diff --git a/app/Http/Controllers/Api/ApplicationsController.php b/app/Http/Controllers/Api/ApplicationsController.phpindex 5265fbb379..485563818a 100644--- a/app/Http/Controllers/Api/ApplicationsController.php+++ b/app/Http/Controllers/Api/ApplicationsController.php@@ -1681,7 +1681,8 @@ class ApplicationsController extends Controller], 422);}$domains = $request->domains;- if ($request->has('domains') && $server->isProxyShouldRun()) {+ $requestHasDomains = $request->has('domains');+ if ($requestHasDomains && $server->isProxyShouldRun()) {$uuid = $request->uuid;$fqdn = $request->domains;$fqdn = str($fqdn)->replaceEnd(',', '')->trim();@@ -1743,7 +1744,7 @@ class ApplicationsController extends ControllerremoveUnnecessaryFieldsFromRequest($request);$data = $request->all();- if ($request->has('domains') && $server->isProxyShouldRun()) {+ if ($requestHasDomains && $server->isProxyShouldRun()) {data_set($data, 'fqdn', $domains);}