From: Andrew Dolgov Date: Sun, 24 Mar 2013 18:49:43 +0000 (+0400) Subject: label auto matcher: preg_quote() label X-Git-Tag: 1.7.6~319 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=227d5e41680d7755eac19579a1cc69e648162107;p=tt-rss.git label auto matcher: preg_quote() label --- 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)) {