when registering feed title, consider its maximum length (closes #818)

This commit is contained in:
Andrew Dolgov 2014-11-02 19:36:58 +03:00
parent f71a669b7d
commit 6383c9c53a
1 changed files with 1 additions and 1 deletions

View File

@ -481,7 +481,7 @@
if (!$registered_title || $registered_title == "[Unknown]") { 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) { if ($feed_title) {
_debug("registering title: $feed_title", $debug_enabled); _debug("registering title: $feed_title", $debug_enabled);