From 5f2d6a3c115b8029b43c57e7c808a7191956e287 Mon Sep 17 00:00:00 2001 From: Jactry Zeng Date: Mon, 21 Mar 2016 04:36:24 +0800 Subject: servlistgui: Removes leading and trailing whitespace from hostnames Closes #1651 --- src/fe-gtk/servlistgui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fe-gtk') diff --git a/src/fe-gtk/servlistgui.c b/src/fe-gtk/servlistgui.c index f7909f72..cca5bf44 100644 --- a/src/fe-gtk/servlistgui.c +++ b/src/fe-gtk/servlistgui.c @@ -1319,7 +1319,7 @@ servlist_sanitize_hostname (char *host) if (c && c == e) *c = '/'; - return ret; + return g_strstrip(ret); } /* remove leading slash */ -- cgit 1.4.1