Skip to content

Commit

Permalink
percent encode the filename used in the delta url
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalmoksha committed Feb 8, 2017
1 parent c6fb841 commit c0d4640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate_appcast/FeedXML.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func writeAppcast(appcastDestPath: URL, updates: [ArchiveItem]) throws {
}
for delta in update.deltas {
var attributes = [
XMLNode.attribute(withName: "url", stringValue: URL(string: delta.archivePath.lastPathComponent, relativeTo: update.archiveURL)!.absoluteString) as! XMLNode,
XMLNode.attribute(withName: "url", stringValue: URL(string: delta.archivePath.lastPathComponent.addingPercentEncoding(withAllowedCharacters: CharacterSet.urlPathAllowed)!, relativeTo: update.archiveURL)!.absoluteString) as! XMLNode,
XMLNode.attribute(withName: "sparkle:version", uri: sparkleNS, stringValue: update.version) as! XMLNode,
XMLNode.attribute(withName: "sparkle:deltaFrom", uri: sparkleNS, stringValue: delta.fromVersion) as! XMLNode,
XMLNode.attribute(withName: "length", stringValue: String(delta.fileSize)) as! XMLNode,
Expand Down

0 comments on commit c0d4640

Please sign in to comment.