Page MenuHomePhabricator

malformed-utf8-recent-activity-feed.patch

Authored By
tavvva
Apr 18 2017, 6:46 AM
Size
646 B
Referenced Files
None
Subscribers
None

malformed-utf8-recent-activity-feed.patch

diff --git a/src/infrastructure/storage/lisk/LiskDAO.php b/src/infrastructure/storage/lisk/LiskDAO.php
index 94eef7d16..fa0802031 100644
--- a/src/infrastructure/storage/lisk/LiskDAO.php
+++ b/src/infrastructure/storage/lisk/LiskDAO.php
@@ -1698,6 +1698,9 @@ abstract class LiskDAO extends Phobject {
if ($deserialize) {
$data[$col] = json_decode($data[$col], true);
} else {
+ foreach ($data[$col] as &$value) {
+ $value = iconv("UTF-8","UTF-8//IGNORE",$value);
+ }
$data[$col] = phutil_json_encode($data[$col]);
}
break;

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
623283
Default Alt Text
malformed-utf8-recent-activity-feed.patch (646 B)

Event Timeline