mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 20:55:55 +00:00
Only strings need 4-byte filtering.
This commit is contained in:
2
include/rssfuncs.php
Executable file → Normal file
2
include/rssfuncs.php
Executable file → Normal file
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user