Changeset 6183
- Timestamp:
- Jun 13, 2008, 9:14:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2x/libtransmission/makemeta.c
r5764 r6183 345 345 int n = 5; 346 346 tr_benc top; 347 const char * ann = builder->announce; 347 348 348 349 if ( builder->comment && *builder->comment ) ++n; 349 350 tr_bencInitDict( &top, n ); 350 351 351 tr_bencDictAddStr( &top, "announce", builder->announce ); 352 353 if( tr_httpParseURL( builder->announce, -1, NULL, NULL, NULL ) ) 352 tr_bencDictAddStr( &top, "announce", ann ); 353 354 /* if a URL was entered but it's invalid, don't allow it. #814, #971 */ 355 if( ann && *ann && !tr_httpIsValidURL( ann ) ) 354 356 builder->result = TR_MAKEMETA_URL; 355 357
Note: See TracChangeset
for help on using the changeset viewer.