From 923512ebaa328076bfb577441fb9ee9f7dbba767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 11 Mar 2021 17:11:42 +0100 Subject: Update RSS generating script: + use utf-8 encoding instead of iso-8859-1 + use https links instead of http MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- rss.php | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/rss.php b/rss.php index f2baab8..535b6e1 100755 --- a/rss.php +++ b/rss.php @@ -30,7 +30,7 @@ function processDir($dirname, $phpfile) { $linestring = strip_tags($convert[$i]); $linestring = str_replace("<", "<", $linestring); $linestring = str_replace(">", ">", $linestring); - echo $linestring. "
\n"; //write value by index + echo $linestring. "
\n"; //write value by index } else { $title = $title . strip_tags($convert[$i]) . "\n"; @@ -43,8 +43,8 @@ function processDir($dirname, $phpfile) { } echo " ]]>\n"; // if (count($convert) > $newscollapsedlines) { - echo " http://www.trinitydesktop.org/newsentry.php?entry=" . $file . "\n"; - echo " http://www.trinitydesktop.org/newsentry.php?entry=" . $file . "\n"; + echo " https://www.trinitydesktop.org/newsentry.php?entry=" . $file . "\n"; + echo " https://www.trinitydesktop.org/newsentry.php?entry=" . $file . "\n"; // } echo " \n"; } @@ -54,15 +54,14 @@ function processDir($dirname, $phpfile) { } } -header('Content-type: application/rss+xml'); +header('Content-type: application/rss+xml; charset=utf-8'); -/*echo "\n";*/ -echo "\n"; +echo "\n"; echo "\n"; echo " \n"; -echo " \n"; +echo " \n"; echo " Trinity Desktop Environment News\n"; -echo " http://www.trinitydesktop.org/\n"; +echo " https://www.trinitydesktop.org/\n"; echo " News of the Trinity Desktop Environment, a full-featured professional desktop for Linux.\n"; echo " en\n"; @@ -73,5 +72,3 @@ echo " \n"; echo "\n"; ?> - - -- cgit v1.2.1