]> git.wh0rd.org Git - tt-rss.git/commitdiff
when registering feed title, consider its maximum length (closes #818)
authorAndrew Dolgov <noreply@fakecake.org>
Sun, 2 Nov 2014 16:36:58 +0000 (19:36 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Sun, 2 Nov 2014 16:36:58 +0000 (19:36 +0300)
include/rssfuncs.php

index 6d9247a7b6b5604399b5bb7547908ef662569d20..1c1f18269b64a73e8638f61b9cfdc813ffc8cd14 100644 (file)
 
                        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);