Release notes referenced by URL in updates item description field can be delivered via https://

This commit is contained in:
Michael Ehrmann authored and Andy Matuschak committed 2013-02-04 08:18:48 -08:00
1 parent 7fae28135e
commit c37fc01bb1
1 file changed
+1 -1
+1 -1
View File
@@ -232,7 +232,7 @@
// Find the appropriate release notes URL.
if ([dict objectForKey:@"sparkle:releaseNotesLink"])
[self setReleaseNotesURL:[NSURL URLWithString:[dict objectForKey:@"sparkle:releaseNotesLink"]]];
else if ([[self itemDescription] hasPrefix:@"http://"]) // if the description starts with http://, use that.
else if ([[self itemDescription] hasPrefix:@"http://"] || [[self itemDescription] hasPrefix:@"https://"]) // if the description starts with http:// or https:// use that.
[self setReleaseNotesURL:[NSURL URLWithString:[self itemDescription]]];
else
[self setReleaseNotesURL:nil];