From 881f8805bd359cb92112c6c82615b580a5a5eb80 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 6 Apr 2023 20:25:24 +0300 Subject: [PATCH] filters: allow matching on tags if there are no tags --- classes/rssutils.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/rssutils.php b/classes/rssutils.php index 385ab31e6..53ad694a8 100755 --- a/classes/rssutils.php +++ b/classes/rssutils.php @@ -1526,6 +1526,8 @@ class RSSUtils { $match = @preg_match("/$reg_exp/iu", $author); break; case "tag": + array_push($tags, ''); // allow matching if there are no tags + foreach ($tags as $tag) { if (@preg_match("/$reg_exp/iu", $tag)) { $match = true;