Changeset 78a2f1e


Ignore:
Timestamp:
2010-04-26T22:47:35Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
288b215
Parents:
c42e8b9
Message:

Escaping in oauth_nonce(). Not sure if the escaping is entirely right ATM...
:-(

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/oauth.c

    rc42e8b9 r78a2f1e  
    108108{
    109109        unsigned char bytes[9];
     110        char *ret;
    110111       
    111112        random_bytes( bytes, sizeof( bytes ) );
    112         return base64_encode( bytes, sizeof( bytes ) );
     113        ret = base64_encode( bytes, sizeof( bytes ) );
     114        ret = g_realloc( ret, strlen( ret ) * 3 + 1 );
     115        http_encode( ret );
     116       
     117        return ret;
    113118}
    114119
Note: See TracChangeset for help on using the changeset viewer.