summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-04-06 20:25:24 +0300
committerAndrew Dolgov <[email protected]>2023-04-06 20:25:24 +0300
commit881f8805bd359cb92112c6c82615b580a5a5eb80 (patch)
tree6a61c96f143a2e2817924a42064c1620413d6f76 /classes
parent53bd56894dc20349fe514818e04a620c79532e87 (diff)
filters: allow matching on tags if there are no tags
Diffstat (limited to 'classes')
-rwxr-xr-xclasses/rssutils.php2
1 files changed, 2 insertions, 0 deletions
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;