Commit 246fccd6 authored by Felix Paul Kühne's avatar Felix Paul Kühne

http connection: fix downloads of files with escaped characters in their names

parent bde02178
......@@ -129,7 +129,7 @@
#if TARGET_OS_IOS
- (NSObject<HTTPResponse> *)_httpGETDownloadForPath:(NSString *)path
{
NSString *filePath = [[path stringByReplacingOccurrencesOfString:@"/download/" withString:@""] stringByAddingPercentEncodingWithAllowedCharacters:NSCharacterSet.URLFragmentAllowedCharacterSet];
NSString *filePath = [[path stringByReplacingOccurrencesOfString:@"/download/" withString:@""] stringByRemovingPercentEncoding];
if (![self fileIsInDocumentFolder:filePath]) {
//return nil which gets handled as resource not found
return nil;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment