From d5beb1e72a2cfac6103eb625d79d57aab8e8a040 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 12 Dec 2013 22:43:10 +0100 Subject: Revert "fix non utf-8 strings in article body, title, guid and author" This reverts commit 321584dc33d17c3d3b4131785423c6beb65c774a. --- db/item.php | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'db') 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)); } -- cgit v1.2.3