Changeset 13619


Ignore:
Timestamp:
Nov 14, 2012, 2:22:55 AM (9 years ago)
Author:
livings124
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/magnet.c

    r13546 r13619  
    157157                if( ( keylen==2 ) && !memcmp( key, "tr", 2 ) )
    158158                    tr[trCount++] = tr_http_unescape( val, vallen );
    159                 else if( ( sscanf( key, "tr.%d=", &i ) == 1 ) && ( i > 0 ) ) /* ticket #3341 */
     159                else if( ( sscanf( key, "tr.%d=", &i ) == 1 ) && ( i >= 0 ) ) /* ticket #3341 and #5134 */
    160160                    tr[trCount++] = tr_http_unescape( val, vallen );
    161161            }
Note: See TracChangeset for help on using the changeset viewer.