Skip to content

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.

fix: switch custom labels check to UTF-8

peaklabs-devb44b7ac49e71
diff --git a/app/Models/Application.php b/app/Models/Application.php
index 59b46f7e72..d6c222a97a 100644
--- a/app/Models/Application.php
+++ b/app/Models/Application.php
@@ -1659,7 +1659,7 @@ class Application extends BaseModel
$this->custom_labels = base64_encode($customLabels);
}
$customLabels = base64_decode($this->custom_labels);
- if (mb_detect_encoding($customLabels, 'ASCII', true) === false) {
+ if (mb_detect_encoding($customLabels, 'UTF-8', true) === false) {
$customLabels = str(implode('|coolify|', generateLabelsApplication($this, $preview)))->replace('|coolify|', "\n");
}
$this->custom_labels = base64_encode($customLabels);