Skip to content

Commit

Permalink
Escape double quotes (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
leefine02 authored Aug 31, 2022
1 parent 5a49f57 commit 2073d7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
v2.5
- Bug fixes for installation on Linux hosted Universal Orchestrator
- Bug fix for handling embedded double quotes in alias on Windows servers (2.5.1)

v2.4
- Add new config.json setting DefaultLinuxPermissionsOnStoreCreation, and certificate store type custom parameter linuxFilePermissionsOnStoreCreation
Expand Down
2 changes: 1 addition & 1 deletion JavaKeyStoreSSH/RemoteHandlers/WinRMHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public override string RunCommand(string commandText, object[] parameters, bool

if (commandText.ToLower().IndexOf("keytool ") > -1)
{
commandText = ($"& '{commandText}").Replace("keytool", "keytool'");
commandText = ($"& '{commandText}").Replace("keytool", "keytool'").Replace(@"""",@"\""");
commandText = "echo '' | " + commandText;
}
ps.AddScript(commandText);
Expand Down

0 comments on commit 2073d7b

Please sign in to comment.