Commit 06159671 authored by Seblu's avatar Seblu

fix rss validation

parent e720c3ef
......@@ -31,6 +31,7 @@ function dispRssChannelNews() {
$str .= '<description>'.htmlspecialchars(strip_tags($news["news_comment"])).'</description>';
$str .= '<pubDate>'.htmlspecialchars(date("r", strtotime($news["news_date"]))).'</pubDate>';
$str .= '<guid>'.htmlspecialchars('http://'.$_SERVER['HTTP_HOST'].'/?html=News#'.$news["news_id"]).'</guid>';
$str .= '<link>'.htmlspecialchars('http://'.$_SERVER['HTTP_HOST'].'/?html=News#'.$news["news_id"]).'</link>';
$str .= '</item>';
}
$str .= '</channel>';
......@@ -52,6 +53,7 @@ function dispRssChannelVideos() {
$str .= '<title>'.htmlspecialchars(strip_tags($video["video_name"])).'</title>';
$str .= '<description>'.htmlspecialchars(strip_tags($video["video_comment"])).'</description>';
$str .= '<pubDate>'.htmlspecialchars(date("r", strtotime($video["video_date"]))).'</pubDate>';
$str .= '<guid>'.htmlspecialchars('http://'.$_SERVER['HTTP_HOST'].'/?video='.$video["video_id"]).'</guid>';
$str .= '<link>'.htmlspecialchars('http://'.$_SERVER['HTTP_HOST'].'/?html=Videos&year_page='.date("Y", strtotime($video["video_date"]))).'</link>';
$str .= '</item>';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment