Changeset 12417


Ignore:
Timestamp:
May 5, 2011, 8:41:09 PM (10 years ago)
Author:
jordan
Message:

(trunk libT) experimental fix for the unterminated announce URLs reported by blacklion in the forums

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/web.c

    r12384 r12417  
    520520            || ( ( 'a' <= *str ) && ( *str <= 'z' ) )
    521521            || ( ( *str == '/' ) && ( !escape_slashes ) ) )
    522             evbuffer_add( out, str, 1 );
     522            evbuffer_add_printf( out, "%c", *str );
    523523        else
    524524            evbuffer_add_printf( out, "%%%02X", (unsigned)(*str&0xFF) );
Note: See TracChangeset for help on using the changeset viewer.