Limit alert to main bundle

This commit is contained in:
Kornel Lesiński committed 2015-12-14 20:22:58 +00:00
1 parent aa11a9e934
commit 254ae41759
1 file changed
+4 -1
+4 -1
View File
@@ -145,10 +145,13 @@ static NSString *const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaults
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 101100
BOOL atsExceptionsExist = nil != [self.host objectForInfoDictionaryKey:@"NSAppTransportSecurity"];
if (!servingOverHttps && !atsExceptionsExist) {
if (isMainBundle && !servingOverHttps && !atsExceptionsExist) {
[self showModalAlertText:@"Insecure feed URL is blocked in OS X 10.11"
informativeText:[NSString stringWithFormat:@"You must change the feed URL (%@) to use HTTPS or disable App Transport Security.\n\nFor more information:\nhttp://sparkle-project.org/documentation/app-transport-security/", [feedURL absoluteString]]];
}
if (!isMainBundle && !servingOverHttps) {
SULog(@"WARNING: Serving updates over HTTP may be blocked in OS X 10.11. Please change the feed URL (%@) to use HTTPS. For more information:\nhttp://sparkle-project.org/documentation/app-transport-security/", feedURL);
}
#endif
}