]> git.wh0rd.org Git - tt-rss.git/commitdiff
obey schema guid length restrictions
authorAndrew Dolgov <fox@madoka.spb.ru>
Mon, 10 Dec 2007 06:03:33 +0000 (07:03 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Mon, 10 Dec 2007 06:03:33 +0000 (07:03 +0100)
functions.php

index 2df75f10a18d0262ad49c0776dc8ec8041116761..ac2699c95c7c10cf129c3b517ceb2bb962b8a69e 100644 (file)
                                if (preg_match('/^[\t\n\r ]*$/', $entry_author)) $entry_author = '';
 
                                $entry_guid = db_escape_string(strip_tags($entry_guid));
+                               $entry_guid = mb_substr($entry_guid, 0, 250);
 
                                $result = db_query($link, "SELECT id FROM       ttrss_entries 
                                        WHERE guid = '$entry_guid'");