From 8cdacd065f5e0e6b0171c60199b71618c0d3af23 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Thu, 30 Jan 2014 08:25:55 -0500 Subject: [PATCH] Properly escape the filename --- ActiveSync/SOGoMailObject+ActiveSync.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ActiveSync/SOGoMailObject+ActiveSync.m b/ActiveSync/SOGoMailObject+ActiveSync.m index e00b31724..00121b4b1 100644 --- a/ActiveSync/SOGoMailObject+ActiveSync.m +++ b/ActiveSync/SOGoMailObject+ActiveSync.m @@ -333,7 +333,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. value = [attachmentKeys objectAtIndex: i]; [s appendString: @""]; - [s appendFormat: @"%@", [value objectForKey: @"filename"]]; + [s appendFormat: @"%@", [[value objectForKey: @"filename"] stringByEscapingHTMLString]]; // FileReference must be a unique identifier across the whole store. We use the following structure: // mail//