From 2ad9ee5606e4b9844e3e06149daf2fe5d8b961d6 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 10 Dec 2007 07:03:33 +0100 Subject: [PATCH] obey schema guid length restrictions --- functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/functions.php b/functions.php index 2df75f10a..ac2699c95 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'");