filters: allow matching on tags if there are no tags

This commit is contained in:
Andrew Dolgov 2023-04-06 20:25:24 +03:00
parent 53bd56894d
commit 881f8805bd
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
1 changed files with 2 additions and 0 deletions

View File

@ -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;