]> jfr.im git - irc/hexchat/hexchat.git/commitdiff
servlistgui: Removes leading and trailing whitespace from hostnames
authorJactry Zeng <redacted>
Sun, 20 Mar 2016 20:36:24 +0000 (04:36 +0800)
committerPatrick Griffis <redacted>
Wed, 30 Mar 2016 12:07:42 +0000 (08:07 -0400)
Closes #1651

src/fe-gtk/servlistgui.c

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