Commit 06159671 authored by Seblu's avatar Seblu
Browse files

fix rss validation

parent e720c3ef
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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>';
    }