1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-20 21:26:53 +00:00

#5134 Magnet links not adding all trackers with tr.0=

This commit is contained in:
Mitchell Livingston 2012-11-14 02:22:55 +00:00
parent dbaf0bcbeb
commit 6bebaee639

View file

@ -156,7 +156,7 @@ tr_magnetParse( const char * uri )
int i;
if( ( keylen==2 ) && !memcmp( key, "tr", 2 ) )
tr[trCount++] = tr_http_unescape( val, vallen );
else if( ( sscanf( key, "tr.%d=", &i ) == 1 ) && ( i > 0 ) ) /* ticket #3341 */
else if( ( sscanf( key, "tr.%d=", &i ) == 1 ) && ( i >= 0 ) ) /* ticket #3341 and #5134 */
tr[trCount++] = tr_http_unescape( val, vallen );
}