Changeset 11189


Ignore:
Timestamp:
Aug 31, 2010, 11:49:09 AM (11 years ago)
Author:
livings124
Message:

#3535 remove unnecessary escape characters and use lowercase in escaped letters in info_hash

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/metainfo.c

    r11186 r11189  
    388388    return ( '0' <= ch && ch <= '9' )
    389389        || ( 'A' <= ch && ch <= 'Z' )
    390         || ( 'a' <= ch && ch <= 'z' );
     390        || ( 'a' <= ch && ch <= 'z' )
     391        || ch == '.'
     392        || ch == '-'
     393        || ch == '_'
     394        || ch == '~';
    391395}
    392396
     
    400404            *out++ = (char) *in++;
    401405        else
    402             out += tr_snprintf( out, 4, "%%%02X", (unsigned int)*in++ );
     406            out += tr_snprintf( out, 4, "%%%02x", (unsigned int)*in++ );
    403407
    404408    *out = '\0';
Note: See TracChangeset for help on using the changeset viewer.