]> git.wh0rd.org - tt-rss.git/commitdiff
Only strings need 4-byte filtering.
authorJustAMacUser <donotreply@example.org>
Tue, 26 Jul 2016 07:51:22 +0000 (03:51 -0400)
committerJustAMacUser <donotreply@example.org>
Tue, 26 Jul 2016 07:51:22 +0000 (03:51 -0400)
include/rssfuncs.php [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index c01e703..21ffcbb
                                        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);
                                                }
                                        }