[Gnucash-changes] r13909 - htdocs/trunk/www - Fix RSS2 mime type;
be consistent about over-reporting charset; remove noise comments.
Joshua Sled
jsled at cvs.gnucash.org
Tue May 2 20:39:39 EDT 2006
Author: jsled
Date: 2006-05-02 20:39:38 -0400 (Tue, 02 May 2006)
New Revision: 13909
Trac: http://svn.gnucash.org/trac/changeset/13909
Modified:
htdocs/trunk/www/rss-feed.phtml
Log:
Fix RSS2 mime type; be consistent about over-reporting charset; remove noise comments.
Modified: htdocs/trunk/www/rss-feed.phtml
===================================================================
--- htdocs/trunk/www/rss-feed.phtml 2006-05-03 00:33:33 UTC (rev 13908)
+++ htdocs/trunk/www/rss-feed.phtml 2006-05-03 00:39:38 UTC (rev 13909)
@@ -14,9 +14,8 @@
//
// Created by Linas Vepstas 2003, 2004
- header("Content-Type: text/rss; charset=iso-8859-1");
-
- echo ("<?xml version=\"1.0\" ?>\n");
+ header("Content-Type: application/rss+xml; charset=iso-8859-1");
+ echo ("<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n");
?>
<rss version="2.0" encoding="iso-8859-1">
@@ -50,14 +49,8 @@
}
$newspath = "$topdir/news/";
-
- // Declare array to hold filenames
$newsfile = array();
-
- // Create handle to search directory $newspath for files
$hd = dir($newspath);
-
- // Get all files and store them in array
while( $filename = $hd->read() ) {
$s=strtolower($filename);
if (strstr($s, ".txt")) {
More information about the gnucash-changes
mailing list