mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-17 17:21:04 +00:00
fix: switch custom labels check to UTF-8
- this allows more characters then ASCII
This commit is contained in:
@@ -1659,7 +1659,7 @@ class Application extends BaseModel
|
|||||||
$this->custom_labels = base64_encode($customLabels);
|
$this->custom_labels = base64_encode($customLabels);
|
||||||
}
|
}
|
||||||
$customLabels = base64_decode($this->custom_labels);
|
$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");
|
$customLabels = str(implode('|coolify|', generateLabelsApplication($this, $preview)))->replace('|coolify|', "\n");
|
||||||
}
|
}
|
||||||
$this->custom_labels = base64_encode($customLabels);
|
$this->custom_labels = base64_encode($customLabels);
|
||||||
|
|||||||
Reference in New Issue
Block a user