From 6383c9c53a280e50216fea88a9852fee46b41229 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 2 Nov 2014 19:36:58 +0300 Subject: [PATCH] when registering feed title, consider its maximum length (closes #818) --- include/rssfuncs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5