summaryrefslogtreecommitdiff
path: root/src/adblock/adblockruletextmatchimpl.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-09-14 19:19:45 +0200
committerAndrea Diamantini <adjam7@gmail.com>2011-09-14 19:19:45 +0200
commit4cdbaad53d6927902dc1f8bdd41a153a683f0e4c (patch)
tree76366152c276d30d7073613ec673b000f0faf9a4 /src/adblock/adblockruletextmatchimpl.cpp
parentImprove adblock (diff)
downloadrekonq-4cdbaad53d6927902dc1f8bdd41a153a683f0e4c.tar.xz
Improve adblock 2
remove wrong assumption on referer header. This fixes a lot of third-party rules :)
Diffstat (limited to 'src/adblock/adblockruletextmatchimpl.cpp')
-rw-r--r--src/adblock/adblockruletextmatchimpl.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/adblock/adblockruletextmatchimpl.cpp b/src/adblock/adblockruletextmatchimpl.cpp
index 7b55bf27..fd901e9c 100644
--- a/src/adblock/adblockruletextmatchimpl.cpp
+++ b/src/adblock/adblockruletextmatchimpl.cpp
@@ -46,10 +46,7 @@ AdBlockRuleTextMatchImpl::AdBlockRuleTextMatchImpl(const QString &filter)
bool AdBlockRuleTextMatchImpl::match(const QNetworkRequest &request, const QString &encodedUrl, const QString &encodedUrlLowerCase) const
{
- // this basically lets the "first request" to pass...
- if (!request.hasRawHeader("referer"))
- return false;
-
+ Q_UNUSED(request);
Q_UNUSED(encodedUrl);
// Case sensitive compare is faster, but would be incorrect with encodedUrl since
// we do want case insensitive.