diff options
author | Andrew Dolgov <[email protected]> | 2023-04-06 20:25:24 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-04-06 20:25:24 +0300 |
commit | 881f8805bd359cb92112c6c82615b580a5a5eb80 (patch) | |
tree | 6a61c96f143a2e2817924a42064c1620413d6f76 | |
parent | 53bd56894dc20349fe514818e04a620c79532e87 (diff) |
filters: allow matching on tags if there are no tags
-rwxr-xr-x | classes/rssutils.php | 2 |
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; |