Skip to content

Commit

Permalink
Bug #681912: Sparkle naively double-escapes enclosure URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
andymatuschak committed Nov 26, 2010
1 parent 7baf505 commit 00b6726
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SUAppcastItem.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 00b6726

Please sign in to comment.