From 0884d1a786b9d2a4e4534dad37101ddbe50a95ed Mon Sep 17 00:00:00 2001 From: "Brian P. Hinz" Date: Tue, 22 Oct 2019 17:48:17 -0400 Subject: [PATCH] [java] Trim any leading/trailing whitespace from servername --- java/com/tigervnc/vncviewer/ServerDialog.java | 1 + 1 file changed, 1 insertion(+) 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(); -- 2.39.5