diff options
author | Jose <jose@zeroc.com> | 2013-02-18 12:38:33 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2013-02-18 12:38:33 +0100 |
commit | d8864f482597f56adcf24bd4e19329f3794a2d2e (patch) | |
tree | ae6aa2edd79b1b86d72956847ab5bbf662b76e12 /java/src/IceGridGUI/Coordinator.java | |
parent | ICE-5158 Added metadata printout to slice2confluence for enumerations in enums (diff) | |
download | ice-d8864f482597f56adcf24bd4e19329f3794a2d2e.tar.bz2 ice-d8864f482597f56adcf24bd4e19329f3794a2d2e.tar.xz ice-d8864f482597f56adcf24bd4e19329f3794a2d2e.zip |
Fixed (ICE-5245) - IceGridGUI connection dialog should add quotes to the hostname
Diffstat (limited to 'java/src/IceGridGUI/Coordinator.java')
-rw-r--r-- | java/src/IceGridGUI/Coordinator.java | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/java/src/IceGridGUI/Coordinator.java b/java/src/IceGridGUI/Coordinator.java index edc20274d33..b74bdc52d19 100644 --- a/java/src/IceGridGUI/Coordinator.java +++ b/java/src/IceGridGUI/Coordinator.java @@ -1766,7 +1766,12 @@ public class Coordinator { str += "tcp"; } - str += " -h " + info.getHost() + " -p " + info.getPort(); + String host = info.getHost(); + if(host.indexOf('"') == -1) + { + host = "\"" + host + "\""; + } + str += " -h " + host + " -p " + info.getPort(); } else { @@ -1987,7 +1992,12 @@ public class Coordinator { str += "tcp"; } - str += " -h " + info.getHost() + " -p " + info.getPort(); + String host = info.getHost(); + if(host.indexOf('"') == -1) + { + host = "\"" + host + "\""; + } + str += " -h " + host + " -p " + info.getPort(); } else { |