GNOME Bugzilla – Bug 751707
connectionDetails: Validate server address
Last modified: 2015-08-03 07:34:00 UTC
Created attachment 306380 [details] [review] connectionDetails: Validate server adress When a user inputs the server adress, we should verify that the address uses valid characters. Attached patch uses some simple regex to search the server entry and alerts the user if an invalid character has been input.
I'm not really convinced to be honest - using illegal characters (which might change radically if IDN[0] takes off) doesn't strike me as a very common thing compared to typos like "irc.gonme.org" which simply cannot be caught with a regular expression. (If we do this anyway, then you should remove '/' from allowed characters - the field expects a host name, not a URL) [0] https://en.wikipedia.org/wiki/Internationalized_domain_name
ah, true. will close for now.