summaryrefslogtreecommitdiff
path: root/include/rssfuncs.php
diff options
context:
space:
mode:
authorJustAMacUser <[email protected]>2016-07-26 03:51:22 -0400
committerJustAMacUser <[email protected]>2016-07-26 03:51:22 -0400
commitdae16f72c9551584ccccce2e058f179f62b6ed09 (patch)
treecdba279c27a7c32dfe69b0ba83ae5a5301cd5b55 /include/rssfuncs.php
parenta6fde6c99f7295f0a3fc3e97333158b10e714af5 (diff)
Only strings need 4-byte filtering.
Diffstat (limited to 'include/rssfuncs.php')
-rw-r--r--[-rwxr-xr-x]include/rssfuncs.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php
index c01e703d1..21ffcbb76 100755..100644
--- 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);
}
}