1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

AdBlockManager: Match always by lower case strings

This commit is contained in:
nowrep 2013-11-02 17:42:20 +01:00
parent 4a85e59778
commit 22b8103fb4

View File

@ -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;