Skip to content

Commit f597137

Browse files
committed
Fix #825: do not use unescaped path string (again)
1 parent 826cda0 commit f597137

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

QuickLook.Plugin/QuickLook.Plugin.ImageViewer/AnimatedImage/AnimatedImage.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ public void Dispose()
5050

5151
private static AnimationProvider InitAnimationProvider(Uri path, MetaProvider meta)
5252
{
53-
var ext = Path.GetExtension(path.AbsolutePath).ToLower();
53+
var ext = Path.GetExtension(path.OriginalString).ToLower();
5454
var type = Providers.First(p => p.Key.Contains(ext) || p.Key.Contains("*")).Value;
5555

56-
var provider = type.CreateInstance<AnimationProvider>(path.AbsolutePath, meta);
56+
var provider = type.CreateInstance<AnimationProvider>(path.OriginalString, meta);
5757

5858
return provider;
5959
}

0 commit comments

Comments
 (0)