From: Jordan Lee Date: Mon, 17 Oct 2011 12:44:17 +0000 (+0000) Subject: (trunk libT) #4571 "can't edit UDP trackers via RPC" -- fixed. X-Git-Tag: 2.50b1~212 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4d740955919ce740623413ddf89850dca5ed4330;p=transmission (trunk libT) #4571 "can't edit UDP trackers via RPC" -- fixed. --- diff --git a/libtransmission/rpcimpl.c b/libtransmission/rpcimpl.c index ece06a339..3a70036b9 100644 --- a/libtransmission/rpcimpl.c +++ b/libtransmission/rpcimpl.c @@ -982,7 +982,7 @@ replaceTrackers( tr_torrent * tor, tr_benc * urls ) if( tr_bencGetInt( pair[0], &pos ) && tr_bencGetStr( pair[1], &newval ) - && tr_urlIsValid( newval, -1 ) + && tr_urlIsValidTracker( newval ) && pos < n && pos >= 0 ) {