From: Brian P. Hinz Date: Tue, 22 Oct 2019 21:48:17 +0000 (-0400) Subject: [java] Trim any leading/trailing whitespace from servername X-Git-Tag: v1.10.90~108 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0884d1a786b9d2a4e4534dad37101ddbe50a95ed;p=tigervnc.git [java] Trim any leading/trailing whitespace from servername --- diff --git a/java/com/tigervnc/vncviewer/ServerDialog.java b/java/com/tigervnc/vncviewer/ServerDialog.java index 99b0f7af..bf3a72f8 100644 --- a/java/com/tigervnc/vncviewer/ServerDialog.java +++ b/java/com/tigervnc/vncviewer/ServerDialog.java @@ -278,6 +278,7 @@ class ServerDialog extends Dialog implements Runnable { private void handleConnect() { String servername = (String)serverName.getSelectedItem(); + servername.trim(); vncServerName.put(servername).flip(); saveViewerParameters(null, servername); endDialog();