From b437f38bd758d09e90c6313a7385f490ac486581 Mon Sep 17 00:00:00 2001 From: Barijaona Ramaholimihaso Date: Sun, 21 Jul 2024 21:09:53 +0300 Subject: [PATCH] Fix crash when MIMEType has issues https://github.com/security-advisories made Vienna crash Issue #1774 --- Vienna/Sources/Fetching/RefreshManager.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vienna/Sources/Fetching/RefreshManager.m b/Vienna/Sources/Fetching/RefreshManager.m index 44210d5080..6e0baaebae 100644 --- a/Vienna/Sources/Fetching/RefreshManager.m +++ b/Vienna/Sources/Fetching/RefreshManager.m @@ -630,7 +630,7 @@ -(void)folderRefreshCompleted:(NSMutableURLRequest *)connector response:(NSURLRe @"log": connectorItem, @"url": url, @"data": receivedData, - @"mimeType": response.MIMEType, + @"mimeType": SafeString(response.MIMEType), @"lastModifiedString": lastModifiedString, }]; }