From 16d0d9f5cc834e8948facaec1dbb6029ac4b5825 Mon Sep 17 00:00:00 2001 From: Chris Moeller Date: Fri, 4 Jan 2019 18:30:45 -0800 Subject: [PATCH] Fix File source to not remove text after hash marks, as NSURL does that for us when we use the path property. --- Plugins/FileSource/FileSource.m | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Plugins/FileSource/FileSource.m b/Plugins/FileSource/FileSource.m index 5005c4474..8a7f18a2f 100644 --- a/Plugins/FileSource/FileSource.m +++ b/Plugins/FileSource/FileSource.m @@ -32,13 +32,6 @@ NSString * path = [url path]; - NSRange fragmentRange = [path rangeOfString:@"#" options:NSBackwardsSearch]; - if (fragmentRange.location != NSNotFound) { - // Chop the fragment. - NSString* newURLString = [path substringToIndex:fragmentRange.location]; - path = newURLString; - } - fex_type_t type; fex_err_t error = fex_identify_file( &type, [path UTF8String] );