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:
parent
4a85e59778
commit
22b8103fb4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user