We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20fbfae commit f800d42Copy full SHA for f800d42
src/ImageSharp.Web/Providers/FileProviderImageProvider.cs
@@ -2,6 +2,7 @@
2
// Licensed under the Apache License, Version 2.0.
3
4
using System;
5
+using System.Net;
6
using System.Threading.Tasks;
7
using Microsoft.AspNetCore.Http;
8
using Microsoft.AspNetCore.Http.Extensions;
@@ -54,7 +55,7 @@ public virtual bool IsValidRequest(HttpContext context)
54
55
/// <inheritdoc/>
56
public Task<IImageResolver> GetAsync(HttpContext context)
57
{
- IFileInfo fileInfo = this.fileProvider.GetFileInfo(context.Request.Path);
58
+ IFileInfo fileInfo = this.fileProvider.GetFileInfo(WebUtility.UrlDecode(context.Request.Path));
59
if (!fileInfo.Exists)
60
61
return Task.FromResult<IImageResolver>(null);
0 commit comments