summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-24 22:49:43 +0400
committerAndrew Dolgov <[email protected]>2013-03-24 22:49:43 +0400
commit227d5e41680d7755eac19579a1cc69e648162107 (patch)
treedbabbea4354859c303910b16e4a8c867f01af099 /include
parent5d5e2e3ae8b0dd11cfc2d2f6eb6a1542b19ff5c7 (diff)
label auto matcher: preg_quote() label
Diffstat (limited to 'include')
-rw-r--r--include/rssfuncs.php2
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)) {