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: validate and sanitize application domains
Andras Bacsaid59d8cda2ac2
diff --git a/app/Livewire/Project/Application/General.php b/app/Livewire/Project/Application/General.phpindex 4ff031958c..2e327d80f2 100644--- a/app/Livewire/Project/Application/General.php+++ b/app/Livewire/Project/Application/General.php@@ -331,10 +331,10 @@ class General extends Componentpublic function submit($showToaster = true){try {- Url::fromString($this->application->fqdn, ['http', 'https']);$this->application->fqdn = str($this->application->fqdn)->replaceEnd(',', '')->trim();$this->application->fqdn = str($this->application->fqdn)->replaceStart(',', '')->trim();$this->application->fqdn = str($this->application->fqdn)->trim()->explode(',')->map(function ($domain) {+ Url::fromString($domain, ['http', 'https']);return str($domain)->trim()->lower();});$this->application->fqdn = $this->application->fqdn->unique()->implode(',');