# HG changeset patch # User Elliott Sales de Andrade # Date 1213664126 0 # Node ID e29019f78984f1013d761de674f10b7298c6b2bc # Parent 46d8edad164706e1191b969bfc519684e750c906 Use purple_url_parse for splitting up the MSN SOAP redirect instead of trying to figure it out ourselves (and doing it wrongly, I might add). Thanks again, Dimmuxx for spotting that. diff -r 46d8edad1647 -r e29019f78984 libpurple/protocols/msn/soap2.c --- a/libpurple/protocols/msn/soap2.c Mon Jun 16 02:29:33 2008 +0000 +++ b/libpurple/protocols/msn/soap2.c Tue Jun 17 00:55:26 2008 +0000 @@ -183,18 +183,10 @@ static gboolean msn_soap_handle_redirect(MsnSoapConnection *conn, const char *url) { - char *c; - - /* Skip the http:// */ - if ((c = strchr(url, '/')) != NULL) - url += 2; + char *host; + char *path; - if ((c = strchr(url, '/')) != NULL) { - char *host, *path; - - host = g_strndup(url, c - url); - path = g_strdup(c); - + if (purple_url_parse(url, &host, NULL, &path, NULL, NULL)) { msn_soap_message_send_internal(conn->session, conn->current_request->message, host, path, conn->current_request->cb, conn->current_request->cb_data, TRUE);