Skip to content

Commit 14d6afe

Browse files
author
James Coyle
authored
Merge 0a258b3 into 066f5a9
2 parents 066f5a9 + 0a258b3 commit 14d6afe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CefSharp/SchemeHandler/FolderSchemeHandlerFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ IResourceHandler ISchemeHandlerFactory.Create(IBrowser browser, IFrame frame, st
8080
asbolutePath = defaultPage;
8181
}
8282

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

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

0 commit comments

Comments
 (0)