]> git.wh0rd.org Git - tt-rss.git/commitdiff
googlereaderimport: limit guid length
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 29 Mar 2013 10:25:36 +0000 (14:25 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 29 Mar 2013 10:25:36 +0000 (14:25 +0400)
plugins/googlereaderimport/init.php

index 881d9dedb3d065e55e4cabfd71299ee321e3d511..5c17acbd1096b22561dd480144dae6b4ef4ed4f4 100644 (file)
@@ -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 = '';