1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-20 11:16:36 +02:00

label auto matcher: preg_quote() label

This commit is contained in:
Andrew Dolgov 2013-03-24 22:49:43 +04:00
parent 5d5e2e3ae8
commit 227d5e4168

View File

@ -996,7 +996,7 @@
}
foreach ($labels as $label) {
$caption = $label["caption"];
$caption = preg_quote($label["caption"]);
if ($caption && preg_match("/\b$caption\b/i", "$tags_str " . strip_tags($entry_content) . " $entry_title")) {
if (!labels_contains_caption($article_labels, $caption)) {