From 97eb25b27fc3852d9a740093972db5b43e358165 Mon Sep 17 00:00:00 2001 From: Zorg Date: Wed, 13 Jul 2016 18:00:06 -0400 Subject: [PATCH] Supply the base URL when loading external release notes This fixes an issue where relative external references could not be loaded from the release notes. Note this just affects apps that have a 'com.apple.security.network.client' entitlement or apps that aren't sandboxed. --- Sparkle/SUUpdateAlert.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sparkle/SUUpdateAlert.m b/Sparkle/SUUpdateAlert.m index ba760155..16405c63 100644 --- a/Sparkle/SUUpdateAlert.m +++ b/Sparkle/SUUpdateAlert.m @@ -198,7 +198,8 @@ - (void)showReleaseNotes:(NSData *)releaseNotes { if (!self.webViewFinishedLoading) { - [[self.releaseNotesView mainFrame] loadData:releaseNotes MIMEType:@"text/html" textEncodingName:@"utf-8" baseURL:nil]; + NSURL *baseURL = self.updateItem.releaseNotesURL.URLByDeletingLastPathComponent; + [[self.releaseNotesView mainFrame] loadData:releaseNotes MIMEType:@"text/html" textEncodingName:@"utf-8" baseURL:baseURL]; } }