Skip to content
Snippets Groups Projects
Commit 72d1d067 authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

fix title and content filters only working on title (closes #512)

parent cc616ea1
No related branches found
No related tags found
No related merge requests found
......@@ -1391,7 +1391,7 @@
$match = @preg_match("/$reg_exp/i", $content);
break;
case "both":
$match = (@preg_match("/$reg_exp/i", $title) || @preg_match("/$reg_exp/i", $title));
$match = (@preg_match("/$reg_exp/i", $title) || @preg_match("/$reg_exp/i", $content));
break;
case "link":
$match = @preg_match("/$reg_exp/i", $link);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment