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.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: improve logging and add shell escaping for git ls-remote
Andras Bacsaib81baff4b178
diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.phpindex 4a849fccba..5b4f71ac96 100644--- a/app/Jobs/ApplicationDeploymentJob.php+++ b/app/Jobs/ApplicationDeploymentJob.php@@ -1927,7 +1927,7 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueue{$importCommands = $this->generate_git_import_commands();$this->application_deployment_queue->addLogEntry("\n----------------------------------------");- $this->application_deployment_queue->addLogEntry("Importing {$this->customRepository}:{$this->application->git_branch} (commit sha {$this->application->git_commit_sha}) to {$this->basedir}.");+ $this->application_deployment_queue->addLogEntry("Importing {$this->customRepository}:{$this->application->git_branch} (commit sha {$this->commit}) to {$this->basedir}.");if ($this->pull_request_id !== 0) {$this->application_deployment_queue->addLogEntry("Checking out tag pull/{$this->pull_request_id}/head.");}diff --git a/app/Models/Application.php b/app/Models/Application.phpindex 82e3e596cf..33c1b7fc4d 100644--- a/app/Models/Application.php+++ b/app/Models/Application.php@@ -1131,7 +1131,8 @@ class Application extends BaseModelif ($this->deploymentType() === 'other') {$fullRepoUrl = $customRepository;- $base_command = "{$base_command} {$customRepository}";+ $escapedCustomRepository = escapeshellarg($customRepository);+ $base_command = "{$base_command} {$escapedCustomRepository}";if ($exec_in_docker) {$commands->push(executeInDocker($deployment_uuid, $base_command));