obey schema guid length restrictions

This commit is contained in:
Andrew Dolgov 2007-12-10 07:03:33 +01:00
parent d4bf9fee25
commit 2ad9ee5606
1 changed files with 1 additions and 0 deletions

View File

@ -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'");