Skip to content

Commit

Permalink
Handle malformed URLs in Xpost sites (#15610)
Browse files Browse the repository at this point in the history
  • Loading branch information
guarani authored Jan 8, 2021
1 parent 6a77fe7 commit 6cf772d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WordPress/Classes/Models/SiteSuggestion+CoreDataClass.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public class SiteSuggestion: NSManagedObject, Decodable {

let container = try decoder.container(keyedBy: CodingKeys.self)
self.title = try container.decode(String.self, forKey: .title)
self.siteURL = try container.decode(URL.self, forKey: .siteURL)
self.siteURL = try? container.decode(URL.self, forKey: .siteURL)
self.subdomain = try container.decode(String.self, forKey: .subdomain)
self.blavatarURL = try container.decode(URL.self, forKey: .blavatarURL)
self.blavatarURL = try? container.decode(URL.self, forKey: .blavatarURL)
}
}

0 comments on commit 6cf772d

Please sign in to comment.