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