]> granicus.if.org Git - icinga2/commitdiff
Fix Windows Agent failing with special characters
authorJean Flach <jean-marcel.flach@netways.de>
Mon, 14 Mar 2016 15:37:15 +0000 (16:37 +0100)
committerJean Flach <jean-marcel.flach@netways.de>
Mon, 14 Mar 2016 15:37:15 +0000 (16:37 +0100)
refs #11327

agent/windows-setup-agent/SetupWizard.cs

index 6186f3311fe2a64c56dee515c883400e259bf075..1b56a3b369e49e09f27f94b76f4cbfda3ba27b3b 100644 (file)
@@ -208,10 +208,10 @@ namespace Icinga
                        if (chkAcceptCommands.Checked)
                                args += " --accept-commands";
 
-                       args += " --ticket " + txtTicket.Text;
-                       args += " --trustedcert " + _TrustedFile;
-                       args += " --cn " + txtInstanceName.Text;
-                       args += " --zone " + txtInstanceName.Text;
+                       args += " --ticket \"" + txtTicket.Text + "\"";
+                       args += " --trustedcert \"" + _TrustedFile + "\"";
+                       args += " --cn \"" + txtInstanceName.Text + "\"";
+                       args += " --zone \"" + txtInstanceName.Text + "\"";
 
                        if (!RunProcess(Program.Icinga2InstallDir + "\\sbin\\icinga2.exe",
                                "node setup" + args,