Skip to content

Commit b44b7ac

Browse files
committed
fix: switch custom labels check to UTF-8
- this allows more characters then ASCII
1 parent aeb9f3c commit b44b7ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/Models/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1659,7 +1659,7 @@ public function parseContainerLabels(?ApplicationPreview $preview = null)
16591659
$this->custom_labels = base64_encode($customLabels);
16601660
}
16611661
$customLabels = base64_decode($this->custom_labels);
1662-
if (mb_detect_encoding($customLabels, 'ASCII', true) === false) {
1662+
if (mb_detect_encoding($customLabels, 'UTF-8', true) === false) {
16631663
$customLabels = str(implode('|coolify|', generateLabelsApplication($this, $preview)))->replace('|coolify|', "\n");
16641664
}
16651665
$this->custom_labels = base64_encode($customLabels);

0 commit comments

Comments
 (0)