From dae16f72c9551584ccccce2e058f179f62b6ed09 Mon Sep 17 00:00:00 2001 From: JustAMacUser Date: Tue, 26 Jul 2016 03:51:22 -0400 Subject: [PATCH] Only strings need 4-byte filtering. --- include/rssfuncs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 include/rssfuncs.php diff --git a/include/rssfuncs.php b/include/rssfuncs.php old mode 100755 new mode 100644 index c01e703d..21ffcbb7 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -778,7 +778,7 @@ foreach ($article as $k => $v) { // i guess we'll have to take the risk of 4byte unicode labels & tags here - if (!is_array($article[$k])) { + if (is_string($article[$k])) { $article[$k] = preg_replace('/[\x{10000}-\x{10FFFF}]/u', "\xEF\xBF\xBD", $v); } } -- 2.39.5