Skip to content

Commit

Permalink
[BUGFIX] Cast port option to string for escapeshellarg calls
Browse files Browse the repository at this point in the history
  • Loading branch information
martinlipp authored and simonschaufi committed Feb 10, 2023
1 parent d6a0b14 commit 9a45a99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Task/Neos/Flow/CopyConfigurationTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ public function execute(Node $node, Application $application, Deployment $deploy
$username = isset($options['username']) ? $options['username'] . '@' : '';
$hostname = $node->getHostname();

$sshPort = isset($options['port']) ? '-p ' . escapeshellarg($options['port']) . ' ' : '';
$scpPort = isset($options['port']) ? '-P ' . escapeshellarg($options['port']) . ' ' : '';
$sshPort = isset($options['port']) ? '-p ' . escapeshellarg((string)$options['port']) . ' ' : '';
$scpPort = isset($options['port']) ? '-P ' . escapeshellarg((string)$options['port']) . ' ' : '';
$sshOptions = '';
$expect = '';
if ($node->hasOption('password')) {
Expand Down

0 comments on commit 9a45a99

Please sign in to comment.