mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
Merge pull request #9 from armadsen/master
(Re)fixes bug where URLs are naively double escaped.
This commit is contained in:
commit
2c54ec012d
1 file changed
+4
-2
+4
-2
@@ -126,8 +126,10 @@
|
||||
return nil;
|
||||
}
|
||||
|
||||
if( enclosureURLString )
|
||||
self.fileURL = [NSURL URLWithString: [enclosureURLString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
|
||||
if( enclosureURLString ) {
|
||||
NSString *fileURLString = [[enclosureURLString stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
|
||||
self.fileURL = [NSURL URLWithString:fileURLString];
|
||||
}
|
||||
if( enclosure )
|
||||
self.DSASignature = [enclosure objectForKey:@"sparkle:dsaSignature"];
|
||||
|
||||
|
||||
Reference in new issue
Block a user