mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Perform URL check as case-insensitive.
One user has had their UI opened in their default web browser because for some reason the request URL has an uppercase drive letter while the comparison URL has a lowercase drive letter.
This commit is contained in:
+1
-1
@@ -1225,7 +1225,7 @@ namespace loot {
|
||||
BOOST_LOG_TRIVIAL(trace) << "Attemping to open link: " << request->GetURL().ToString();
|
||||
BOOST_LOG_TRIVIAL(trace) << "Comparing with URL: " << ToFileURL(g_path_report);
|
||||
|
||||
if (request->GetURL() == ToFileURL(g_path_report)) {
|
||||
if (boost::iequals(request->GetURL().ToString(), ToFileURL(g_path_report))) {
|
||||
BOOST_LOG_TRIVIAL(trace) << "Link is to LOOT page, allowing CEF's default handling.";
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user