diff --git a/functions.php b/functions.php index 97b12ec46..5d086f9e9 100644 --- a/functions.php +++ b/functions.php @@ -497,7 +497,11 @@ if (!$registered_title || $registered_title == "[Unknown]") { - $feed_title = db_escape_string($rss->channel["title"]); + if (ENABLE_SIMPLEPIE) { + $feed_title = $rss->get_title(); + } else { + $feed_title = db_escape_string($rss->channel["title"]); + } if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { _debug("update_rss_feed: registering title: $feed_title");