Changeset 93b7bd4 for protocols/msn/msn.c
- Timestamp:
- 2006-10-15T09:34:02Z (18 years ago)
- Branches:
- master
- Children:
- ee5c355
- Parents:
- 7e83adca (diff), e97827b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/msn.c
r7e83adca r93b7bd4 367 367 struct gaim_connection *gc = acc->gc; 368 368 struct msn_data *md; 369 char buf[1024], *fn , *s;369 char buf[1024], *fn; 370 370 int i; 371 371 … … 382 382 } 383 383 384 /* Of course we could use http_encode() here, but when we encode 385 every character, the server is less likely to complain about the 386 chosen name. However, the MSN server doesn't seem to like escaped 387 non-ASCII chars, so we keep those unescaped. */ 388 s = fn = g_new0( char, strlen( value ) * 3 + 1 ); 389 for( i = 0; value[i]; i ++ ) 390 if( value[i] & 128 ) 391 { 392 *s = value[i]; 393 s ++; 394 } 395 else 396 { 397 g_snprintf( s, 4, "%%%02X", value[i] ); 398 s += 3; 399 } 384 fn = msn_http_encode( value ); 400 385 401 386 g_snprintf( buf, sizeof( buf ), "REA %d %s %s\r\n", ++md->trId, gc->username, fn );
Note: See TracChangeset
for help on using the changeset viewer.