diff options
author | Andrew Dolgov <[email protected]> | 2013-03-24 22:49:43 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-03-24 22:49:43 +0400 |
commit | 227d5e41680d7755eac19579a1cc69e648162107 (patch) | |
tree | dbabbea4354859c303910b16e4a8c867f01af099 /include/rssfuncs.php | |
parent | 5d5e2e3ae8b0dd11cfc2d2f6eb6a1542b19ff5c7 (diff) |
label auto matcher: preg_quote() label
Diffstat (limited to 'include/rssfuncs.php')
-rw-r--r-- | include/rssfuncs.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 193194b50..92bfaa023 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)) { |