From 3e755338b40f3dfc742d3aec443881da5a75344c Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Wed, 25 Feb 2026 12:08:24 +0100 Subject: [PATCH] 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. --- app/Jobs/ApplicationDeploymentJob.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.php index 121c8ee03..dfcf9ee09 100644 --- a/app/Jobs/ApplicationDeploymentJob.php +++ b/app/Jobs/ApplicationDeploymentJob.php @@ -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)