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
1 changed files with 1 additions and 1 deletions

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 */