mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
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.
This commit is contained in:
1 parent
e171824a74
commit
97eb25b27f
1 file changed
+2
-1
Vendored
+2
-1
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user