diff options
Diffstat (limited to 'lib/urlfilter/domain.cpp')
-rw-r--r-- | lib/urlfilter/domain.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/urlfilter/domain.cpp b/lib/urlfilter/domain.cpp index 20c4f3a..2bfd524 100644 --- a/lib/urlfilter/domain.cpp +++ b/lib/urlfilter/domain.cpp @@ -29,6 +29,10 @@ Domain &Domain::operator=(Domain &&other) bool Domain::matches(const QUrl &url) const { + // empty domain matches all + if(m_domain.isEmpty() || url.isEmpty()) + return true; + const QString domain = url.host(); // domain and filter are the same |