From 227d5e41680d7755eac19579a1cc69e648162107 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 24 Mar 2013 22:49:43 +0400 Subject: [PATCH] label auto matcher: preg_quote() label --- include/rssfuncs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 193194b5..92bfaa02 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -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)) { -- 2.39.5