diff --git a/Pachyderm/Model/Attachment.swift b/Pachyderm/Model/Attachment.swift index 1ab4b98074..b9663bc6c4 100644 --- a/Pachyderm/Model/Attachment.swift +++ b/Pachyderm/Model/Attachment.swift @@ -115,7 +115,7 @@ extension Attachment { } fileprivate extension URL { - private static let allowedChars = CharacterSet.urlHostAllowed.union(.urlPathAllowed) + private static let allowedChars = CharacterSet.urlHostAllowed.union(.urlPathAllowed).union(.urlQueryAllowed) init?(lenient string: String) { guard let escaped = string.addingPercentEncoding(withAllowedCharacters: URL.allowedChars) else {