Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix(healthchecks): remove redundant newline sanitization from CMD healthcheck

Andras Bacsai3e755338b40f
diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.php
index 121c8ee032..dfcf9ee099 100644
--- a/app/Jobs/ApplicationDeploymentJob.php
+++ b/app/Jobs/ApplicationDeploymentJob.php
@@ -2771,10 +2771,9 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueue
{
// 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)