diff options
author | Andrew Dolgov <[email protected]> | 2014-11-02 19:36:58 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2014-11-02 19:36:58 +0300 |
commit | 6383c9c53a280e50216fea88a9852fee46b41229 (patch) | |
tree | b8ec44380a67cacaf8055b0913f623785a683e50 /include/rssfuncs.php | |
parent | f71a669b7dc9e2048cfea02f39ab4ef8cde4178a (diff) |
when registering feed title, consider its maximum length (closes #818)
Diffstat (limited to 'include/rssfuncs.php')
-rw-r--r-- | include/rssfuncs.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 6d9247a7b..1c1f18269 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); |