diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-12-12 18:47:35 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-12-12 18:47:35 +0100 |
commit | a1b660daae9dd252d84ec44e8a5102277539b395 (patch) | |
tree | c4cfc40343592860e985437fb672389719125715 /src/adblock/adblockhostmatcher.cpp | |
parent | getSaveFileName --> getSaveUrl (diff) | |
download | rekonq-a1b660daae9dd252d84ec44e8a5102277539b395.tar.xz |
- Code style check (codestyle script round)
- restored CTRL + ENTER code
- applied Vedant's patch about (thanks!!!)
CCMAIL: vedant.kota@gmail.com
REVIEW: 107662
REVIEWED-BY: Tirtha and me
Diffstat (limited to 'src/adblock/adblockhostmatcher.cpp')
-rw-r--r-- | src/adblock/adblockhostmatcher.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/adblock/adblockhostmatcher.cpp b/src/adblock/adblockhostmatcher.cpp index 60936ec0..4a1ea443 100644 --- a/src/adblock/adblockhostmatcher.cpp +++ b/src/adblock/adblockhostmatcher.cpp @@ -3,6 +3,7 @@ * This file is a part of the rekonq project * * Copyright (C) 2010-2011 by Benjamin Poulain <ikipou at gmail dot com> +* Copyright (C) 2012 by Andrea Diamantini <adjam7 at gmail dot com> * * * This program is free software; you can redistribute it and/or @@ -55,13 +56,13 @@ bool AdBlockHostMatcher::tryAddFilter(const QString &filter) if (filter.startsWith(QL1S("@@"))) { QString domain = filter.mid(2); - + if (domain.contains(QL1C('^'))) return false; if (domain.contains(QL1C('$'))) return false; - + if (domain.contains(QL1C('*'))) return false; @@ -77,6 +78,6 @@ bool AdBlockHostMatcher::tryAddFilter(const QString &filter) m_hostList.insert(domain); return true; } - + return false; } |