summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-12-10 07:03:33 +0100
committerAndrew Dolgov <[email protected]>2007-12-10 07:03:33 +0100
commit2ad9ee5606e4b9844e3e06149daf2fe5d8b961d6 (patch)
treefd90bf4e36e44ae7796b83033cd11051bafdc24d /functions.php
parentd4bf9fee2553925e50ca292703243c0f12b480f6 (diff)
obey schema guid length restrictions
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php1
1 files changed, 1 insertions, 0 deletions
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'");