From 254ae41759e892e388dde87a374a10ee6e474056 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kornel=20Lesi=C5=84ski?= Date: Mon, 14 Dec 2015 20:22:58 +0000 Subject: [PATCH] Limit alert to main bundle --- Sparkle/SUUpdater.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Sparkle/SUUpdater.m b/Sparkle/SUUpdater.m index 61836f94..95be679f 100644 --- a/Sparkle/SUUpdater.m +++ b/Sparkle/SUUpdater.m @@ -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 }