From: Andrew Dolgov Date: Mon, 10 Dec 2007 06:03:33 +0000 (+0100) Subject: obey schema guid length restrictions X-Git-Tag: 1.2.18~2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=2ad9ee5606e4b9844e3e06149daf2fe5d8b961d6;p=tt-rss.git obey schema guid length restrictions --- diff --git a/functions.php b/functions.php index 2df75f10..ac2699c9 100644 --- a/functions.php +++ b/functions.php @@ -830,6 +830,7 @@ 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'");