diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2013-12-12 22:43:10 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2013-12-12 22:43:10 +0100 |
commit | d5beb1e72a2cfac6103eb625d79d57aab8e8a040 (patch) | |
tree | f69554fb0cbe6476e2f51a152857ff11e45c965f | |
parent | 3789cf50e7cf08a670d47cba55df5e26151bdcca (diff) |
Revert "fix non utf-8 strings in article body, title, guid and author"
This reverts commit 321584dc33d17c3d3b4131785423c6beb65c774a.
-rw-r--r-- | db/item.php | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/db/item.php b/db/item.php index 6b5a49f15..8f516f9c6 100644 --- a/db/item.php +++ b/db/item.php @@ -152,20 +152,6 @@ class Item extends Entity implements IAPI { } - public function fromRow(array $array) { - // sanitize them fucked up non utf-8 strings because PHP's glorious idea - // on how to handle non utf-8 srtings in json_encode is to just *BOOM* - // in your face, which results in a spinning wheel. Forever. - foreach($array as $key => $value) { - if($key === 'body' || $key === 'author' || $key === 'title' || - $key === 'guid' || $key === 'guidHash') { - $array[$key] === iconv('UTF-8', 'UTF-8//IGNORE', $value); - } - } - parent::fromRow($array); - } - - public function setAuthor($name) { parent::setAuthor(strip_tags($name)); } |