From: Mitchell Livingston Date: Sat, 26 Sep 2009 16:31:00 +0000 (+0000) Subject: always get favicons from http:// X-Git-Tag: 1.80b5~696 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2d073d9139cc433841053dc57e2b5814f78b99ad;p=transmission always get favicons from http:// --- diff --git a/macosx/InfoWindowController.m b/macosx/InfoWindowController.m index 1d1b5927a..fc874ba7f 100644 --- a/macosx/InfoWindowController.m +++ b/macosx/InfoWindowController.m @@ -904,10 +904,10 @@ typedef enum //let's try getting the tracker address without using any subdomains NSString * baseAddress; if ([hostComponents count] > 1) - baseAddress = [NSString stringWithFormat: @"%@://%@.%@", [address scheme], + baseAddress = [NSString stringWithFormat: @"http://%@.%@", [hostComponents objectAtIndex: [hostComponents count] - 2], [hostComponents lastObject]]; else - baseAddress = [NSString stringWithFormat: @"%@://%@", [address scheme], [hostComponents lastObject]]; + baseAddress = [NSString stringWithFormat: @"http://%@", [hostComponents lastObject]]; id icon = [fTrackerIconCache objectForKey: baseAddress]; if (!icon && ![fTrackerIconLoading containsObject: baseAddress])