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

This commit is contained in:
Jordan Lee 2011-05-05 20:41:09 +00:00
parent 45669fed08
commit 3269d99287
1 changed files with 1 additions and 1 deletions

View File

@ -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) );
}