summaryrefslogtreecommitdiff
path: root/include/rssfuncs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <noreply@fakecake.org>2015-07-06 21:31:57 +0300
committerAndrew Dolgov <noreply@fakecake.org>2015-07-06 21:31:57 +0300
commit74c1ff6065a4fc7c58bb453a87dfcf59a14e88f8 (patch)
tree48372c8e7d4e65984e40a6e95373609bd5cb13a3 /include/rssfuncs.php
parent5dcc7bf1f6a5dceddf28f179438531d3f08b0d6a (diff)
parent35c373549453d962907c14a81059a1de0dfc5e7a (diff)
Merge branch 'master' of git.fakecake.org:tt-rss
Diffstat (limited to 'include/rssfuncs.php')
-rw-r--r--include/rssfuncs.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php
index 8797ee523..6eb4e6d98 100644
--- a/include/rssfuncs.php
+++ b/include/rssfuncs.php
@@ -761,7 +761,11 @@
// Workaround: 4-byte unicode requires utf8mb4 in MySQL. See https://tt-rss.org/forum/viewtopic.php?f=1&t=3377&p=20077#p20077
if (DB_TYPE == "mysql") {
foreach ($article as $k => $v) {
- $article[$k] = preg_replace('/[\x{10000}-\x{10FFFF}]/u', "\xEF\xBF\xBD", $v);
+
+ // i guess we'll have to take the risk of 4byte unicode labels & tags here
+ if (!is_array($article[$k])) {
+ $article[$k] = preg_replace('/[\x{10000}-\x{10FFFF}]/u', "\xEF\xBF\xBD", $v);
+ }
}
}