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:
Oliver Hamlet
2015-05-22 09:15:58 +01:00
parent 23636981bc
commit 492d8abaac
+1 -1
View File
@@ -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;
}