diff --git a/feed/index.php b/feed/index.php index ebd8ab6b1..a6d12995d 100644 --- a/feed/index.php +++ b/feed/index.php @@ -1,51 +1,51 @@ getWebSiteTitle(); $link = $global['webSiteRootURL']; $logo = "{$global['webSiteRootURL']}videos/userPhoto/logo.png"; $description = ""; $extraPluginFile = $global['systemRootPath'] . 'plugin/Customize/Objects/ExtraConfig.php'; if (file_exists($extraPluginFile) && AVideoPlugin::isEnabledByName("Customize")) { require_once $extraPluginFile; $ec = new ExtraConfig(); $description = $ec->getDescription(); } if(!empty($_GET['channelName'])){ $user = User::getChannelOwner($_GET['channelName']); $showOnlyLoggedUserVideos = $user['id']; $title = User::getNameIdentificationById($user['id']); $link = User::getChannelLink($user['id']); $logo = User::getPhoto($user['id']); } // send $_GET['catName'] to be able to filter by category $rows = Video::getAllVideos("viewable", $showOnlyLoggedUserVideos); if(!empty($_REQUEST['roku'])){ header('Content-Type: application/json'); include $global['systemRootPath'] . 'feed/roku.json.php'; }else if(empty($_REQUEST['mrss'])){ header('Content-Type: text/xml; charset=UTF8'); include $global['systemRootPath'] . 'feed/rss.php'; }else{ header('Content-Type: text/xml; charset=UTF8'); include $global['systemRootPath'] . 'feed/mrss.php'; } function feedText($text){ - return str_replace(array(' '), array(''), htmlentities(strip_tags(br2nl($text)))); + return str_replace(array(' '), array(''), htmlspecialchars(strip_tags(br2nl($text)))); } ?> \ No newline at end of file