diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-02-21 19:21:04 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-02-24 18:41:20 +0100 |
commit | fd1f2205b673a41bedb3959c99b8958f99a7b269 (patch) | |
tree | 6f9b3815fa7c595474689772aae1338bdb4cf1a4 /src/adblock/adblockruletextmatchimpl.cpp | |
parent | No more static members in the Application class, (diff) | |
download | rekonq-fd1f2205b673a41bedb3959c99b8958f99a7b269.tar.xz |
AdBlock: adding a Null Rule to match all the unimplemented filters.
BUG:248045
BUG:253329
BUG:265909
Diffstat (limited to 'src/adblock/adblockruletextmatchimpl.cpp')
-rw-r--r-- | src/adblock/adblockruletextmatchimpl.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/adblock/adblockruletextmatchimpl.cpp b/src/adblock/adblockruletextmatchimpl.cpp index 7296d837..04fb040b 100644 --- a/src/adblock/adblockruletextmatchimpl.cpp +++ b/src/adblock/adblockruletextmatchimpl.cpp @@ -23,12 +23,14 @@ * * ============================================================ */ + // Self Includes #include "adblockruletextmatchimpl.h" // Rekonq Includes #include "rekonq_defines.h" + AdBlockRuleTextMatchImpl::AdBlockRuleTextMatchImpl(const QString &filter) : AdBlockRuleImpl(filter) { @@ -38,6 +40,7 @@ AdBlockRuleTextMatchImpl::AdBlockRuleTextMatchImpl(const QString &filter) m_textToMatch.remove(QL1C('*')); } + bool AdBlockRuleTextMatchImpl::match(const QNetworkRequest &request, const QString &encodedUrl, const QString &encodedUrlLowerCase) const { Q_UNUSED(encodedUrl); @@ -49,6 +52,7 @@ bool AdBlockRuleTextMatchImpl::match(const QNetworkRequest &request, const QStri return encodedUrlLowerCase.contains(m_textToMatch, Qt::CaseSensitive); } + bool AdBlockRuleTextMatchImpl::isTextMatchFilter(const QString &filter) { // We don't deal with options just yet |