summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2016-10-19 21:40:58 +0300
committerAndrew Dolgov <[email protected]>2016-10-19 21:40:58 +0300
commite3dceca66b041af425621ef1a1431a1bd15d132b (patch)
tree0726eabd0b09ea080eb6325aceec9fb17de4906c /include
parent6687cb9927cf6bef4440115676dd8bdf716041f4 (diff)
get_article_filters: add unicode modifier to preg_match()
Diffstat (limited to 'include')
-rw-r--r--include/rssfuncs.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php
index 32bc69819..ccc6d5154 100644
--- a/include/rssfuncs.php
+++ b/include/rssfuncs.php
@@ -1382,29 +1382,29 @@
switch ($rule["type"]) {
case "title":
- $match = @preg_match("/$reg_exp/i", $title);
+ $match = @preg_match("/$reg_exp/iu", $title);
break;
case "content":
// we don't need to deal with multiline regexps
$content = preg_replace("/[\r\n\t]/", "", $content);
- $match = @preg_match("/$reg_exp/i", $content);
+ $match = @preg_match("/$reg_exp/iu", $content);
break;
case "both":
// we don't need to deal with multiline regexps
$content = preg_replace("/[\r\n\t]/", "", $content);
- $match = (@preg_match("/$reg_exp/i", $title) || @preg_match("/$reg_exp/i", $content));
+ $match = (@preg_match("/$reg_exp/iu", $title) || @preg_match("/$reg_exp/iu", $content));
break;
case "link":
- $match = @preg_match("/$reg_exp/i", $link);
+ $match = @preg_match("/$reg_exp/iu", $link);
break;
case "author":
- $match = @preg_match("/$reg_exp/i", $author);
+ $match = @preg_match("/$reg_exp/iu", $author);
break;
case "tag":
foreach ($tags as $tag) {
- if (@preg_match("/$reg_exp/i", $tag)) {
+ if (@preg_match("/$reg_exp/iu", $tag)) {
$match = true;
break;
}