mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-08 08:32:31 -06:00
- BUGFIX: Use Wildcard matching instead of full regex in RSS feed downloader
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
- BUGFIX: Make sure service port does not change
|
- BUGFIX: Make sure service port does not change
|
||||||
- BUGFIX: Fix possible DHT port saving issue
|
- BUGFIX: Fix possible DHT port saving issue
|
||||||
- BUGFIX: Fix communication between qBittorrent and Web UI (Qt 4.6)
|
- BUGFIX: Fix communication between qBittorrent and Web UI (Qt 4.6)
|
||||||
|
- BUGFIX: Use Wildcard matching instead of full regex in RSS feed downloader
|
||||||
|
|
||||||
* Wed Dec 23 2009 - Christophe Dumez <chris@qbittorrent.org> - v2.0.3
|
* Wed Dec 23 2009 - Christophe Dumez <chris@qbittorrent.org> - v2.0.3
|
||||||
- BUGFIX: Minor cosmetic fix to program preferences
|
- BUGFIX: Minor cosmetic fix to program preferences
|
||||||
|
|||||||
@@ -67,14 +67,14 @@ public:
|
|||||||
foreach(const QString& token, match_tokens) {
|
foreach(const QString& token, match_tokens) {
|
||||||
if(token.isEmpty() || token == "")
|
if(token.isEmpty() || token == "")
|
||||||
continue;
|
continue;
|
||||||
QRegExp reg(token, Qt::CaseInsensitive);
|
QRegExp reg(token, Qt::CaseInsensitive, QRegExp::Wildcard);
|
||||||
if(reg.indexIn(s) < 0) return false;
|
if(reg.indexIn(s) < 0) return false;
|
||||||
}
|
}
|
||||||
// Checking not matching
|
// Checking not matching
|
||||||
QStringList notmatch_tokens = getNotMatchingTokens();
|
QStringList notmatch_tokens = getNotMatchingTokens();
|
||||||
foreach(const QString& token, notmatch_tokens) {
|
foreach(const QString& token, notmatch_tokens) {
|
||||||
if(token.isEmpty()) continue;
|
if(token.isEmpty()) continue;
|
||||||
QRegExp reg(token, Qt::CaseInsensitive);
|
QRegExp reg(token, Qt::CaseInsensitive, QRegExp::Wildcard);
|
||||||
if(reg.indexIn(s) > -1) return false;
|
if(reg.indexIn(s) > -1) return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user