Changes in protocols/msn/soap.c [cdd1ded:693aca0]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/soap.c
rcdd1ded r693aca0 270 270 struct im_connection *ic = soap_req->ic; 271 271 struct msn_data *md = ic->proto_data; 272 char pass[MAX_PASSPORT_PWLEN + 1]; 272 273 273 274 if (sd->redirect) { … … 285 286 } 286 287 288 strncpy(pass, ic->acc->pass, MAX_PASSPORT_PWLEN); 289 pass[MAX_PASSPORT_PWLEN] = '\0'; 287 290 soap_req->payload = g_markup_printf_escaped(SOAP_PASSPORT_SSO_PAYLOAD, 288 ic->acc->user, ic->acc->pass, md->pp_policy);291 ic->acc->user, pass, md->pp_policy); 289 292 290 293 return MSN_SOAP_OK; … … 324 327 struct xt_node *code = xt_find_node(node->children, "faultcode"); 325 328 struct xt_node *string = xt_find_node(node->children, "faultstring"); 326 struct xt_node *reqstatus = xt_find_path(node, "psf:pp/psf:reqstatus");327 329 struct xt_node *url; 328 330 … … 333 335 url->text_len > 0) { 334 336 sd->redirect = g_strdup(url->text); 335 } else if (reqstatus && strcmp(reqstatus->text, "0x800488fe") == 0) {336 char *msg = "Location blocked. Log in to live.com, go to recent activity and click 'this was me'";337 sd->error = g_strdup_printf("%s (%s)", code->text, msg);338 337 } else { 339 338 sd->error = g_strdup_printf("%s (%s)", code->text, string && string->text_len ? … … 347 346 { "wsse:BinarySecurityToken", "wst:RequestedSecurityToken", msn_soap_passport_sso_token }, 348 347 { "S:Fault", "S:Envelope", msn_soap_passport_failure }, 349 { "S:Fault", "wst:RequestSecurityTokenResponse", msn_soap_passport_failure },350 348 { NULL, NULL, NULL } 351 349 }; … … 776 774 imcb_log(soap_req->ic, "Warning: %d contacts were in both your " 777 775 "block and your allow list. Assuming they're all " 778 "allowed.", wtf); 776 "allowed. Use the official WLM client once to fix " 777 "this.", wtf); 779 778 } 780 779
Note: See TracChangeset
for help on using the changeset viewer.