From: Andrew Dolgov Date: Sun, 2 Nov 2014 16:36:58 +0000 (+0300) Subject: when registering feed title, consider its maximum length (closes #818) X-Git-Tag: 1.15~22 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=6383c9c53a280e50216fea88a9852fee46b41229;p=tt-rss.git when registering feed title, consider its maximum length (closes #818) --- diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 6d9247a7..1c1f1826 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -481,7 +481,7 @@ if (!$registered_title || $registered_title == "[Unknown]") { - $feed_title = db_escape_string($rss->get_title()); + $feed_title = db_escape_string(mb_substr($rss->get_title(), 0, 199); if ($feed_title) { _debug("registering title: $feed_title", $debug_enabled);