servlistgui: Removes leading and trailing whitespace from hostnames

Closes #1651
This commit is contained in:
Jactry Zeng 2016-03-21 04:36:24 +08:00 committed by Patrick Griffis
parent 356241bdfb
commit 5f2d6a3c11

View File

@ -1319,7 +1319,7 @@ servlist_sanitize_hostname (char *host)
if (c && c == e) if (c && c == e)
*c = '/'; *c = '/';
return ret; return g_strstrip(ret);
} }
/* remove leading slash */ /* remove leading slash */