fix: switch custom labels check to UTF-8

- this allows more characters then ASCII
This commit is contained in:
peaklabs-dev
2026-01-13 17:12:16 +01:00
parent aeb9f3c852
commit b44b7ac49e

View File

@@ -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);