Skip to content

Commit f684da3

Browse files
FolderSchemeHandlerFactory - Remove UrlDecode from rootFolder (#5052)
1 parent ac2a90d commit f684da3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CefSharp/SchemeHandler/FolderSchemeHandlerFactory.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ protected virtual IResourceHandler Create(IBrowser browser, IFrame frame, string
109109
asbolutePath = defaultPage;
110110
}
111111

112-
var filePath = WebUtility.UrlDecode(Path.GetFullPath(Path.Combine(rootFolder, asbolutePath)));
112+
var filePath = Path.GetFullPath(Path.Combine(rootFolder, WebUtility.UrlDecode(asbolutePath)));
113113

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

0 commit comments

Comments
 (0)