fix: switch custom labels check to UTF-8
- this allows more characters then ASCII
This commit is contained in:
parent
aeb9f3c852
commit
b44b7ac49e
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue