summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJactry Zeng <jactry92@gmail.com>2016-03-21 04:36:24 +0800
committerPatrick Griffis <tingping@tingping.se>2016-03-30 08:07:42 -0400
commit5f2d6a3c115b8029b43c57e7c808a7191956e287 (patch)
tree031d00d388095a1612de04c7c98ca4afba46cceb /src
parent356241bdfb943e11b5ad6756ed1cd9585d64a00e (diff)
servlistgui: Removes leading and trailing whitespace from hostnames
Closes #1651
Diffstat (limited to 'src')
-rw-r--r--src/fe-gtk/servlistgui.c2
1 files changed, 1 insertions, 1 deletions
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 */