From 492d8abaac3af86766c7fc9a60d8438ab3db6d72 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Fri, 22 May 2015 09:15:26 +0100 Subject: [PATCH] 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. --- src/gui/handler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/handler.cpp b/src/gui/handler.cpp index b1c0a3cb..c7a3565c 100644 --- a/src/gui/handler.cpp +++ b/src/gui/handler.cpp @@ -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; }