(trunk libT) experimental fix for the unterminated announce URLs reported by blacklion in the forums
This commit is contained in:
parent
45669fed08
commit
3269d99287
|
@ -519,7 +519,7 @@ tr_http_escape( struct evbuffer * out,
|
|||
|| ( ( 'A' <= *str ) && ( *str <= 'Z' ) )
|
||||
|| ( ( 'a' <= *str ) && ( *str <= 'z' ) )
|
||||
|| ( ( *str == '/' ) && ( !escape_slashes ) ) )
|
||||
evbuffer_add( out, str, 1 );
|
||||
evbuffer_add_printf( out, "%c", *str );
|
||||
else
|
||||
evbuffer_add_printf( out, "%%%02X", (unsigned)(*str&0xFF) );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue