From 3695a595277fc5a64938d4efee9d55eb5377c015 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