Ignore:
Timestamp:
2010-10-02T06:56:33Z (12 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
385fbc4, 8e9e2b7
Parents:
62f53b50
Message:

Restore MSN password truncation code. MSN still can't handle passwords
longer than 16 chars and silently fails if you give >16chars.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/soap.c

    r62f53b50 r2af3e23  
    270270        struct im_connection *ic = soap_req->ic;
    271271        struct msn_data *md = ic->proto_data;
     272        char pass[MAX_PASSPORT_PWLEN+1];
    272273       
    273274        if( sd->redirect )
     
    281282                soap_req->url = g_strdup( SOAP_PASSPORT_SSO_URL );
    282283       
     284        strncpy( pass, ic->acc->pass, MAX_PASSPORT_PWLEN );
    283285        soap_req->payload = g_markup_printf_escaped( SOAP_PASSPORT_SSO_PAYLOAD,
    284                 ic->acc->user, ic->acc->pass, md->pp_policy );
     286                ic->acc->user, pass, md->pp_policy );
    285287       
    286288        return MSN_SOAP_OK;
Note: See TracChangeset for help on using the changeset viewer.