summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2013-12-12 22:43:10 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2013-12-12 22:43:10 +0100
commitd5beb1e72a2cfac6103eb625d79d57aab8e8a040 (patch)
treef69554fb0cbe6476e2f51a152857ff11e45c965f /db
parent3789cf50e7cf08a670d47cba55df5e26151bdcca (diff)
Revert "fix non utf-8 strings in article body, title, guid and author"
Diffstat (limited to 'db')
-rw-r--r--db/item.php14
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));
}