]> git.wh0rd.org Git - tt-rss.git/commitdiff
label auto matcher: preg_quote() label
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 24 Mar 2013 18:49:43 +0000 (22:49 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 24 Mar 2013 18:49:43 +0000 (22:49 +0400)
include/rssfuncs.php

index 193194b5071626241c0f49251c59f5fa0ecba62b..92bfaa02384e8d86242c87f1745c1e248dfdb320 100644 (file)
                                        }
 
                                        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)) {