Merge pull request #711 from sparkle-project/urlencode

Don't re-encode URLs
This commit is contained in:
Kornel committed 2016-01-10 13:41:03 +00:00
commit a9a0fe54b8
1 file changed
+2 -1
+2 -1
View File
@@ -134,7 +134,8 @@
}
if (enclosureURLString) {
NSString *fileURLString = [[enclosureURLString stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
// Sparkle used to always URL-encode, so for backwards compatibility spaces in URLs must be forgiven.
NSString *fileURLString = [enclosureURLString stringByReplacingOccurrencesOfString:@" " withString:@"%20"];
self.fileURL = [NSURL URLWithString:fileURLString];
}
if (enclosure) {