fix(healthchecks): remove redundant newline sanitization from CMD healthcheck
Simplify the CMD healthcheck generation by removing the str_replace call that normalizes newlines. The command is now used directly without modification, following the pattern of centralized command escaping in recent changes.
This commit is contained in:
parent
521d995ea1
commit
3e755338b4
1 changed files with 2 additions and 3 deletions
|
|
@ -2771,10 +2771,9 @@ private function generate_healthcheck_commands()
|
|||
{
|
||||
// Handle CMD type healthcheck
|
||||
if ($this->application->health_check_type === 'cmd' && ! empty($this->application->health_check_command)) {
|
||||
$command = str_replace(["\r\n", "\r", "\n"], ' ', $this->application->health_check_command);
|
||||
$this->full_healthcheck_url = $command;
|
||||
$this->full_healthcheck_url = $this->application->health_check_command;
|
||||
|
||||
return $command;
|
||||
return $this->application->health_check_command;
|
||||
}
|
||||
|
||||
// HTTP type healthcheck (default)
|
||||
|
|
|
|||
Loading…
Reference in a new issue