Support App Store URL scheme in release note webview

This commit is contained in:
Bi11 authored and Kornel committed 2020-09-03 13:49:01 +01:00
1 parent 7c7e924ed4
commit f2fc729b69
1 file changed
+1 -1
+1 -1
View File
@@ -353,7 +353,7 @@ static NSString *const SUUpdateAlertTouchBarIndentifier = @"" SPARKLE_BUNDLE_IDE
NSURL *requestURL = request.URL;
NSString *scheme = requestURL.scheme;
BOOL isAboutBlank = [requestURL.absoluteString isEqualToString:@"about:blank"];
BOOL whitelistedSafe = [scheme isEqualToString:@"http"] || [scheme isEqualToString:@"https"] || isAboutBlank;
BOOL whitelistedSafe = isAboutBlank || [@[@"http", @"https", @"macappstore", @"macappstores", @"itms-apps", @"itms-appss"] containsObject:scheme];
// Do not allow redirects to dangerous protocols such as file://
if (!whitelistedSafe) {