Skip to content

Commit 017c188

Browse files
committed
[RELEASE] Version 9.0.2 with fixed RCE option type
2 parents 64b721e + 7877c4c commit 017c188

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# In2publish Core Change Log
22

3+
9.0.2:
4+
5+
- [META] Set the EM conf version number to 9.0.1
6+
- [BUGFIX] Ensure all RCE command arguments, options and names are strings
7+
- [RELEASE] Version 9.0.1 with stability improvements
8+
39
9.0.1:
410

511
- [META] Set the EM conf version number to 9.0.1

Classes/Communication/Shared/SshBaseAdapter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ protected function prepareCommand(RemoteCommandRequest $request): string
173173
$command = '';
174174

175175
foreach ($request->getEnvironmentVariables() as $name => $value) {
176-
$command .= 'export ' . escapeshellcmd($name) . '=' . escapeshellarg($value) . '; ';
176+
$command .= 'export ' . escapeshellcmd((string)$name) . '=' . escapeshellarg((string)$value) . '; ';
177177
}
178178

179179
$command .= 'cd ' . escapeshellarg($request->getWorkingDirectory()) . ' && ';
@@ -183,13 +183,13 @@ protected function prepareCommand(RemoteCommandRequest $request): string
183183

184184
if ($request->hasOptions()) {
185185
foreach ($request->getOptions() as $option) {
186-
$command .= ' ' . escapeshellcmd($option);
186+
$command .= ' ' . escapeshellcmd((string)$option);
187187
}
188188
}
189189

190190
if ($request->hasArguments()) {
191191
foreach ($request->getArguments() as $name => $value) {
192-
$command .= ' ' . escapeshellcmd($name) . '=' . escapeshellarg($value);
192+
$command .= ' ' . escapeshellcmd((string)$name) . '=' . escapeshellarg((string)$value);
193193
}
194194
}
195195
return $command;

ext_emconf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
'title' => 'in2publish Core',
55
'description' => 'Content publishing extension to connect stage and production server',
66
'category' => 'plugin',
7-
'version' => '9.0.1',
7+
'version' => '9.0.2',
88
'state' => 'stable',
99
'uploadfolder' => 0,
1010
'createDirs' => '',

0 commit comments

Comments
 (0)