Skip to content

Commit

Permalink
FolderSchemeHandlerFactory - Remove UrlDecode from rootFolder (#5052)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbohunovsky-IDG authored Feb 21, 2025
1 parent ac2a90d commit f684da3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CefSharp/SchemeHandler/FolderSchemeHandlerFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ protected virtual IResourceHandler Create(IBrowser browser, IFrame frame, string
asbolutePath = defaultPage;
}

var filePath = WebUtility.UrlDecode(Path.GetFullPath(Path.Combine(rootFolder, asbolutePath)));
var filePath = Path.GetFullPath(Path.Combine(rootFolder, WebUtility.UrlDecode(asbolutePath)));

//Check the file requested is within the specified path and that the file exists
if (filePath.StartsWith(rootFolder, StringComparison.OrdinalIgnoreCase) && File.Exists(filePath))
Expand Down

0 comments on commit f684da3

Please sign in to comment.