# HG changeset patch # User Eric Warmenhoven # Date 1006069261 0 # Node ID 51fc8e5acd7ac80ae2c7910564de56a0fb49ad60 # Parent a0da8be3db4545172f40f11bcebaa04024b7fa02 [gaim-migrate @ 2760] alan committer: Tailor Script diff -r a0da8be3db45 -r 51fc8e5acd7a src/protocols/msn/msn.c --- a/src/protocols/msn/msn.c Sun Nov 18 05:42:08 2001 +0000 +++ b/src/protocols/msn/msn.c Sun Nov 18 07:41:01 2001 +0000 @@ -669,9 +669,12 @@ static void msn_accept_add(gpointer w, struct msn_add_permit *map) { struct msn_data *md = map->gc->proto_data; + char *user; char buf[MSN_BUF_LEN]; - g_snprintf(buf, sizeof(buf), "ADD %d AL %s %s\r\n", ++md->trId, map->user, map->friend); + user = g_strdup(url_encode(map->user)); + g_snprintf(buf, sizeof(buf), "ADD %d AL %s %s\r\n", ++md->trId, user, url_encode(map->friend)); + g_free(user); if (msn_write(md->fd, buf, strlen(buf)) < 0) { hide_login_progress(map->gc, "Write error"); signoff(map->gc); @@ -1709,6 +1712,7 @@ if (l) return; + who = url_encode(who); g_snprintf(buf, sizeof(buf), "ADD %d FL %s %s\r\n", ++md->trId, who, who); if (msn_write(md->fd, buf, strlen(buf)) < 0) { hide_login_progress(gc, "Write error"); @@ -1722,6 +1726,7 @@ struct msn_data *md = gc->proto_data; char buf[MSN_BUF_LEN]; + who = url_encode(who); g_snprintf(buf, sizeof(buf), "REM %d FL %s\r\n", ++md->trId, who); if (msn_write(md->fd, buf, strlen(buf)) < 0) { hide_login_progress(gc, "Write error"); @@ -1820,6 +1825,7 @@ t = g_slist_append(t, who); continue; } + who = url_encode(who); g_snprintf(buf, sizeof(buf), "ADD %d AL %s %s\r\n", ++md->trId, who, who); if (msn_write(md->fd, buf, strlen(buf)) < 0) { hide_login_progress(gc, "Write error"); @@ -1847,6 +1853,7 @@ t = g_slist_append(t, who); continue; } + who = url_encode(who); g_snprintf(buf, sizeof(buf), "ADD %d AL %s %s\r\n", ++md->trId, who, who); if (msn_write(md->fd, buf, strlen(buf)) < 0) { hide_login_progress(gc, "Write error"); @@ -1878,6 +1885,7 @@ return; } + who = url_encode(who); g_snprintf(buf, sizeof(buf), "ADD %d AL %s %s\r\n", ++md->trId, who, who); if (msn_write(md->fd, buf, strlen(buf)) < 0) { hide_login_progress(gc, "Write error"); @@ -1891,6 +1899,7 @@ struct msn_data *md = gc->proto_data; char buf[MSN_BUF_LEN]; + who = url_encode(who); g_snprintf(buf, sizeof(buf), "REM %d AL %s\r\n", ++md->trId, who); if (msn_write(md->fd, buf, strlen(buf)) < 0) { hide_login_progress(gc, "Write error"); @@ -1911,6 +1920,7 @@ return; } + who = url_encode(who); g_snprintf(buf, sizeof(buf), "ADD %d BL %s %s\r\n", ++md->trId, who, who); if (msn_write(md->fd, buf, strlen(buf)) < 0) { hide_login_progress(gc, "Write error"); @@ -1924,6 +1934,7 @@ struct msn_data *md = gc->proto_data; char buf[MSN_BUF_LEN]; + who = url_encode(who); g_snprintf(buf, sizeof(buf), "REM %d BL %s\r\n", ++md->trId, who); if (msn_write(md->fd, buf, strlen(buf)) < 0) { hide_login_progress(gc, "Write error");