[Openfirst-cvscommit] news/rss rss.php,1.1,1.2
Brought to you by:
xtimg
From: <i-...@us...> - 2003-10-01 22:54:02
|
Update of /cvsroot/openfirst/news/rss In directory sc8-pr-cvs1:/tmp/cvs-serv3586/news/rss Modified Files: rss.php Log Message: Added a call to strip_tags to convert news to plaintext. HTML tags can "break" XML output. Index: rss.php =================================================================== RCS file: /cvsroot/openfirst/news/rss/rss.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** rss.php 28 Sep 2003 15:33:53 -0000 1.1 --- rss.php 1 Oct 2003 22:53:58 -0000 1.2 *************** *** 74,79 **** $about = $link = $home.$base.'/news/readnews.php?ID='.$news->ID; ! $title = (string) $news->title; ! $description = (string) $news->news; $subject = (string) ''; // optional DC value $date = (string) date('Y-m-d\TH:i:sO'); // optional DC value --- 74,79 ---- $about = $link = $home.$base.'/news/readnews.php?ID='.$news->ID; ! $title = strip_tags($news->title); ! $description = strip_tags($news->news); $subject = (string) ''; // optional DC value $date = (string) date('Y-m-d\TH:i:sO'); // optional DC value *************** *** 82,86 **** $image = (string) $home.$base.'/news/images/'.$news->image; // optional mod_im value for dispaying a different pic for every item ! $rssfile->addItem($about, $title, $link, $description, $subject, $date, $author, $comments, $image); } --- 82,86 ---- $image = (string) $home.$base.'/news/images/'.$news->image; // optional mod_im value for dispaying a different pic for every item ! $rssfile->addItem($about, $title, $link, $description, $subject, $date, $author, $comments, $image); } *************** *** 94,96 **** ob_end_flush(); ! ?> \ No newline at end of file --- 94,96 ---- ob_end_flush(); ! ?> |