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
No known key found for this signature in database

View file

@ -1659,7 +1659,7 @@ public function parseContainerLabels(?ApplicationPreview $preview = null)
$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);