mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
Fixing Bug #300053: "Disable signature requirement when appcast and update archive URLs are local"
This commit is contained in:
1 parent
a7818f0f64
commit
08b785083a
1 file changed
+1
-1
@@ -160,7 +160,7 @@
|
||||
{
|
||||
// New in Sparkle 1.5: we're now checking signatures on all non-secure downloads, where "secure" is defined as both the appcast and the download being transmitted over SSL.
|
||||
NSURL *downloadURL = [[d request] URL];
|
||||
if (![[downloadURL scheme] isEqualToString:@"https"] || ![[appcastURL scheme] isEqualToString:@"https"] || [host publicDSAKey])
|
||||
if (!([[downloadURL scheme] isEqualToString:@"https"] && [[appcastURL scheme] isEqualToString:@"https"]) || !([downloadURL isFileURL] && [appcastURL isFileURL]) || [host publicDSAKey])
|
||||
{
|
||||
if (![SUDSAVerifier validatePath:downloadPath withEncodedDSASignature:[updateItem DSASignature] withPublicDSAKey:[host publicDSAKey]])
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user