From 94cb5fe0b6a98ec0934bf6bc88df3139dc7dfe40 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Tue, 29 Dec 2009 21:42:19 +0000 Subject: [PATCH] - BUGFIX: Use Wildcard matching instead of full regex in RSS feed downloader --- Changelog | 1 + src/feeddownloader.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Changelog b/Changelog index 81b001674..dced85cad 100644 --- a/Changelog +++ b/Changelog @@ -4,6 +4,7 @@ - BUGFIX: Make sure service port does not change - BUGFIX: Fix possible DHT port saving issue - 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 - v2.0.3 - BUGFIX: Minor cosmetic fix to program preferences diff --git a/src/feeddownloader.h b/src/feeddownloader.h index 1b6806611..03a32d118 100644 --- a/src/feeddownloader.h +++ b/src/feeddownloader.h @@ -67,14 +67,14 @@ public: foreach(const QString& token, match_tokens) { if(token.isEmpty() || token == "") continue; - QRegExp reg(token, Qt::CaseInsensitive); + QRegExp reg(token, Qt::CaseInsensitive, QRegExp::Wildcard); if(reg.indexIn(s) < 0) return false; } // Checking not matching QStringList notmatch_tokens = getNotMatchingTokens(); foreach(const QString& token, notmatch_tokens) { if(token.isEmpty()) continue; - QRegExp reg(token, Qt::CaseInsensitive); + QRegExp reg(token, Qt::CaseInsensitive, QRegExp::Wildcard); if(reg.indexIn(s) > -1) return false; } return true;