Ignore:
Timestamp:
2006-10-15T09:31:13Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
69cb623, 93b7bd4
Parents:
3ef6410 (diff), 695e392 (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.
Message:

Merging from devel.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/msn.c

    r3ef6410 re97827b  
    366366        struct gaim_connection *gc = acc->gc;
    367367        struct msn_data *md;
    368         char buf[1024], *fn, *s;
     368        char buf[1024], *fn;
    369369        int i;
    370370       
     
    381381        }
    382382       
    383         /* Of course we could use http_encode() here, but when we encode
    384            every character, the server is less likely to complain about the
    385            chosen name. However, the MSN server doesn't seem to like escaped
    386            non-ASCII chars, so we keep those unescaped. */
    387         s = fn = g_new0( char, strlen( value ) * 3 + 1 );
    388         for( i = 0; value[i]; i ++ )
    389                 if( value[i] & 128 )
    390                 {
    391                         *s = value[i];
    392                         s ++;
    393                 }
    394                 else
    395                 {
    396                         g_snprintf( s, 4, "%%%02X", value[i] );
    397                         s += 3;
    398                 }
     383        fn = msn_http_encode( value );
    399384       
    400385        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.