From 22b8103fb4e22617ecf603ff8868d6cd20a56658 Mon Sep 17 00:00:00 2001 From: nowrep Date: Sat, 2 Nov 2013 17:42:20 +0100 Subject: [PATCH] AdBlockManager: Match always by lower case strings --- src/lib/adblock/adblockmanager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/adblock/adblockmanager.cpp b/src/lib/adblock/adblockmanager.cpp index d68f6a357..218446489 100644 --- a/src/lib/adblock/adblockmanager.cpp +++ b/src/lib/adblock/adblockmanager.cpp @@ -85,9 +85,9 @@ QNetworkReply* AdBlockManager::block(const QNetworkRequest &request) QElapsedTimer timer; timer.start(); #endif - const QString &urlString = request.url().toEncoded(); - const QString &urlDomain = request.url().host(); - const QString &urlScheme = request.url().scheme(); + const QString &urlString = request.url().toEncoded().toLower(); + const QString &urlDomain = request.url().host().toLower(); + const QString &urlScheme = request.url().scheme().toLower(); if (!isEnabled() || !canRunOnScheme(urlScheme)) { return 0;