GNOME Bugzilla – Bug 743988
Space in beginning/end of server address blocks connection.
Last modified: 2015-03-02 22:15:54 UTC
Steps to reproduce: Enter "irc.gnome.org " as server address (for example, copypaste it with space from web) Expectedr esult: Polari connects to irc.gnome.org Real result: It does not. Fix is a simple .trim() diff --git a/src/connections.js b/src/connections.js index e361ed3..4fcc87a 100644 --- a/src/connections.js +++ b/src/connections.js @@ -183,7 +183,7 @@ const ConnectionDetails = new Lang.Class({ let params = { name: this._descEntry.text.length ? this._descEntry.text : server, - server: server, + server: server.trim(), account: this._nickEntry.text };
The following fix has been pushed: 68213ad connections: Trim whitespace from user input
Created attachment 298352 [details] [review] connections: Trim whitespace from user input Surrounding whitespace may be odd-but-harmless at best, but will cause connection problems when used with the server address. Just trim whitespace from all entries before processing them.