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: non-ascii chars in labels
Andras Bacsaif68aace44501
diff --git a/app/Livewire/Project/Application/General.php b/app/Livewire/Project/Application/General.phpindex e6cad2eee7..a6d82c8ef1 100644--- a/app/Livewire/Project/Application/General.php+++ b/app/Livewire/Project/Application/General.php@@ -120,6 +120,11 @@ class General extends Component$this->application->save();}$this->customLabels = base64_decode(data_get($this->application, 'custom_labels'));+ // Fix for non-ascii characters+ if (preg_match('~[^\x20-\x7E\t\r\n]~', $this->customLabels) > 0) {+ ray('custom_labels contains non-ascii characters');+ $this->resetDefaultLabels(false);+ }}$this->initialDockerComposeLocation = $this->application->docker_compose_location;@@ -244,9 +249,7 @@ class General extends Component$this->application->docker_compose_domains = json_encode($this->parsedServiceDomains);$this->parsedServices = $this->application->parseCompose();}- if ($this->customLabels) {- $this->application->custom_labels = base64_encode($this->customLabels);- }+ $this->application->custom_labels = base64_encode($this->customLabels);$this->application->save();$showToaster && $this->dispatch('success', 'Application settings updated!');} catch (\Throwable $e) {