function cmtx_url_encode($value) { //encode URL $value = cmtx_url_encode_spaces($value); $value = cmtx_encode($value); return $value; }
<rss version="2.0"> <channel> <title>' . cmtx_encode(cmtx_setting('rss_title')) . '</title> <link>' . cmtx_url_encode(cmtx_setting('rss_link')) . '</link> <description>' . CMTX_RSS_DESCRIPTION . '</description>'; if (isset($last_build_date)) { echo ' <lastBuildDate>' . $last_build_date . '</lastBuildDate>'; } echo ' <generator>Commentics</generator>'; if (cmtx_setting('rss_image_enabled')) { echo ' <image> <url>' . cmtx_url_encode(cmtx_setting('rss_image_url')) . '</url> <title>' . cmtx_encode(cmtx_setting('rss_title')) . '</title> <link>' . cmtx_url_encode(cmtx_setting('rss_link')) . '</link> <width>' . cmtx_setting('rss_image_width') . '</width> <height>' . cmtx_setting('rss_image_height') . '</height> </image>'; } while ($comments = cmtx_db_fetch_assoc($result)) { $pages_query = cmtx_db_query("SELECT * FROM `" . $cmtx_mysql_table_prefix . "pages` WHERE `id` = '" . $comments["page_id"] . "'"); $pages = cmtx_db_fetch_assoc($pages_query); $title = sprintf(CMTX_RSS_POSTER, $comments["name"]); $link = cmtx_get_permalink($comments["id"], $pages["url"]); $comment = $comments["comment"]; $dated = date("r", strtotime($comments["dated"])); $guid = $comments["id"]; echo ' <item>