From: Eric W. <war...@us...> - 2001-11-18 07:41:04
|
Update of /cvsroot/gaim/gaim/src/protocols/msn In directory usw-pr-cvs1:/tmp/cvs-serv18411/protocols/msn Modified Files: msn.c Log Message: alan Index: msn.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/msn/msn.c,v retrieving revision 1.38 retrieving revision 1.39 diff -u -d -r1.38 -r1.39 --- msn.c 2001/11/17 21:59:59 1.38 +++ msn.c 2001/11/18 07:41:01 1.39 @@ -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"); |