]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Version 0.0.20 beta:
authorSeb Sauvage <sebsauvage@sebsauvage.net>
Tue, 27 Sep 2011 13:35:32 +0000 (15:35 +0200)
committerEmilien Klein <emilien@klein.st>
Tue, 27 Sep 2011 13:35:32 +0000 (15:35 +0200)
- Corrected: RSS feed is now served as application/rss+xml instead of application/xhtml+xml (which was causing problem in RSS Lounge)
- Corrected: ATOM feed is now served as application/atom+xml instead of application/xhtml+xml

index.php

index 276deb847ee4ba3ffbc80927318922a3d01c4491..e1da9bc06a722b5248d1ca8ad6a96f8980f40d7a 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,5 +1,5 @@
 <?php
-// Shaarli 0.0.19 beta - Shaare your links...
+// Shaarli 0.0.20 beta - Shaare your links...
 // The personal, minimalist, super-fast, no-database delicious clone. By sebsauvage.net
 // http://sebsauvage.net/wiki/doku.php?id=php:shaarli
 // Licence: http://www.opensource.org/licenses/zlib-license.php
@@ -47,7 +47,7 @@ header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
 header("Cache-Control: no-store, no-cache, must-revalidate");
 header("Cache-Control: post-check=0, pre-check=0", false);
 header("Pragma: no-cache");
-define('shaarli_version','0.0.19 beta');
+define('shaarli_version','0.0.20 beta');
 if (!is_dir(DATADIR)) { mkdir(DATADIR,0705); chmod(DATADIR,0705); }
 if (!is_file(DATADIR.'/.htaccess')) { file_put_contents(DATADIR.'/.htaccess',"Allow from none\nDeny from all\n"); } // Protect data files.    
 if (!is_file(CONFIG_FILE)) install();
@@ -574,7 +574,7 @@ function showRSS()
     elseif (!empty($_GET['searchtags']))   $linksToDisplay = $LINKSDB->filterTags(trim($_GET['searchtags']));
     else $linksToDisplay = $LINKSDB;
         
-    header('Content-Type: application/xhtml+xml; charset=utf-8');
+    header('Content-Type: application/rss+xml; charset=utf-8');
     $pageaddr=htmlspecialchars(serverUrl().$_SERVER["SCRIPT_NAME"]);
     echo '<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">';
     echo '<channel><title>'.htmlspecialchars($GLOBALS['title']).'</title><link>'.$pageaddr.'</link>';
@@ -606,7 +606,7 @@ function showATOM()
     elseif (!empty($_GET['searchtags']))   $linksToDisplay = $LINKSDB->filterTags(trim($_GET['searchtags']));
     else $linksToDisplay = $LINKSDB;
     
-    header('Content-Type: application/xhtml+xml; charset=utf-8');
+    header('Content-Type: application/atom+xml; charset=utf-8');
     $pageaddr=htmlspecialchars(serverUrl().$_SERVER["SCRIPT_NAME"]);
     $latestDate = '';
     $entries='';