Skip to content

Commit dd3ff38

Browse files
committed
refactor: Encode delimiter in SshMultiplexingHelper
1 parent 69553ec commit dd3ff38

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/Helpers/SshMultiplexingHelper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ public static function generateSshCommand(Server $server, string $command)
139139
$ssh_command .= self::getCommonSshOptions($server, $sshKeyLocation, config('constants.ssh.connection_timeout'), config('constants.ssh.server_interval'));
140140

141141
$delimiter = Hash::make($command);
142+
$delimiter = base64_encode($delimiter);
142143
$command = str_replace($delimiter, '', $command);
143144

144145
$ssh_command .= "{$server->user}@{$server->ip} 'bash -se' << \\$delimiter".PHP_EOL

0 commit comments

Comments
 (0)