summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-27 01:11:35 -0700
committerAndrew Dolgov <[email protected]>2013-04-27 01:11:35 -0700
commit5cfaa472830d6c08d0408df62995b8bc8245d5bd (patch)
tree10842bf2945b2ddd2768ff5739785739475f6cbf /include
parent8cefe38a0a1623db866cb9bf295fe8a591ad5488 (diff)
parent7b80b5e1600f9b0ffda7da6fcb717223b31a310d (diff)
Merge pull request #168 from KonishchevDmitry/pr-match-filter-regex-to-each-tag-separately
Match each tag separately against user filter regular expression
Diffstat (limited to 'include')
-rw-r--r--include/rssfuncs.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php
index 0cd41dc05..f4f9fa53c 100644
--- a/include/rssfuncs.php
+++ b/include/rssfuncs.php
@@ -1271,8 +1271,12 @@
$match = @preg_match("/$reg_exp/i", $author);
break;
case "tag":
- $tag_string = join(",", $tags);
- $match = @preg_match("/$reg_exp/i", $tag_string);
+ foreach ($tags as $tag) {
+ if (@preg_match("/$reg_exp/i", $tag)) {
+ $match = true;
+ break;
+ }
+ }
break;
}