diff options
author | Jactry Zeng <jactry92@gmail.com> | 2016-03-21 04:36:24 +0800 |
---|---|---|
committer | Patrick Griffis <tingping@tingping.se> | 2016-03-30 08:07:42 -0400 |
commit | 5f2d6a3c115b8029b43c57e7c808a7191956e287 (patch) | |
tree | 031d00d388095a1612de04c7c98ca4afba46cceb /src/fe-gtk | |
parent | 356241bdfb943e11b5ad6756ed1cd9585d64a00e (diff) |
servlistgui: Removes leading and trailing whitespace from hostnames
Closes #1651
Diffstat (limited to 'src/fe-gtk')
-rw-r--r-- | src/fe-gtk/servlistgui.c | 2 |
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 */ |