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 8725f07 commit f93477bCopy full SHA for f93477b
1 file changed
browser-scheme.cpp
@@ -42,8 +42,10 @@ CefRefPtr<CefResourceHandler> BrowserSchemeHandlerFactory::Create(CefRefPtr<CefB
42
if (fileExtension.compare("woff2") == 0)
43
fileExtension = "woff";
44
45
- std::string filePath = path.substr(path.find_first_not_of("/"));
46
- std::string checkString = filePath.substr(0, filePath.find_first_of("/"));
+ std::string filePath = path.substr(1);
+
47
+ std::string checkString = path.substr(path.find_first_not_of("/"));
48
+ checkString = checkString.substr(0, checkString.find_first_of("/"));
49
50
// An IP address should never be a valid path for CreateForFile normally, but in some cases an OS
51
// can resolve one as such. As an extra safeguard, we prevent any IP addresses in the path.
0 commit comments