From: Andrew Dolgov Date: Fri, 29 Mar 2013 10:25:36 +0000 (+0400) Subject: googlereaderimport: limit guid length X-Git-Tag: 1.7.6~169 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=05e1e0ff20fb2115afa593251e9c5642e3b0f31d;p=tt-rss.git googlereaderimport: limit guid length --- diff --git a/plugins/googlereaderimport/init.php b/plugins/googlereaderimport/init.php index 881d9ded..5c17acbd 100644 --- a/plugins/googlereaderimport/init.php +++ b/plugins/googlereaderimport/init.php @@ -89,7 +89,7 @@ class GoogleReaderImport extends Plugin { foreach ($doc['items'] as $item) { // print_r($item); - $guid = db_escape_string($this->link, $item['id']); + $guid = db_escape_string($this->link, mb_substr($item['id'], 0, 250)); $title = db_escape_string($this->link, $item['title']); $updated = date('Y-m-d h:i:s', $item['updated']); $link = '';