servlistgui: Removes leading and trailing whitespace from hostnames

Closes #1651
This commit is contained in:
Jactry Zeng authored and Patrick Griffis committed 2016-03-30 08:07:42 -04:00
1 parent 356241bdfb
commit 5f2d6a3c11
1 file changed
+1 -1
+1 -1
View File
@@ -1319,7 +1319,7 @@ servlist_sanitize_hostname (char *host)
if (c && c == e)
*c = '/';
return ret;
return g_strstrip(ret);
}
/* remove leading slash */