Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bug #681912: Sparkle naively double-escapes enclosure URLs

  • Loading branch information...
commit 00b67269d69f311ce4dcc39437f1d8ac1825b383 1 parent 7baf505
@andymatuschak andymatuschak authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  SUAppcastItem.m
View
3  SUAppcastItem.m
@@ -180,7 +180,8 @@ - (BOOL)isDeltaUpdate
[self setDate:[dict objectForKey:@"pubDate"]];
[self setItemDescription:[dict objectForKey:@"description"]];
- [self setFileURL:[NSURL URLWithString:[[enclosure objectForKey:@"url"] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]];
+ NSString *fileURLString = [[[enclosure objectForKey:@"url"] stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
+ [self setFileURL:[NSURL URLWithString:fileURLString]];
[self setDSASignature:[enclosure objectForKey:@"sparkle:dsaSignature"]];
[self setVersionString:newVersion];
Please sign in to comment.
Something went wrong with that request. Please try again.