diff options
author | Sebastien SAUVAGE <sebsauvage@sebsauvage.net> | 2013-03-01 17:43:20 +0100 |
---|---|---|
committer | Sebastien SAUVAGE <sebsauvage@sebsauvage.net> | 2013-03-01 17:43:20 +0100 |
commit | 58046a19ae3e8cba4b4dbef783bd3caed2f6e881 (patch) | |
tree | 84668eacc56632f9841d4de64151e52a2d822ed3 | |
parent | dd62b9ba2aa93ec867edc14b541da3cd11658679 (diff) | |
download | Shaarli-58046a19ae3e8cba4b4dbef783bd3caed2f6e881.tar.gz Shaarli-58046a19ae3e8cba4b4dbef783bd3caed2f6e881.tar.zst Shaarli-58046a19ae3e8cba4b4dbef783bd3caed2f6e881.zip |
URL source in cached RSS feeds.
-rw-r--r-- | index.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -921,7 +921,7 @@ function showRSS() | |||
921 | echo '<description><![CDATA['.nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description'])))).$descriptionlink.']]></description>'."\n</item>\n"; | 921 | echo '<description><![CDATA['.nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description'])))).$descriptionlink.']]></description>'."\n</item>\n"; |
922 | $i++; | 922 | $i++; |
923 | } | 923 | } |
924 | echo '</channel></rss>'; | 924 | echo '</channel></rss><!-- Cached version of '.pageUrl().' -->'; |
925 | 925 | ||
926 | $cache->cache(ob_get_contents()); | 926 | $cache->cache(ob_get_contents()); |
927 | ob_end_flush(); | 927 | ob_end_flush(); |
@@ -1001,7 +1001,7 @@ function showATOM() | |||
1001 | $feed.='<author><name>'.htmlspecialchars($pageaddr).'</name><uri>'.htmlspecialchars($pageaddr).'</uri></author>'; | 1001 | $feed.='<author><name>'.htmlspecialchars($pageaddr).'</name><uri>'.htmlspecialchars($pageaddr).'</uri></author>'; |
1002 | $feed.='<id>'.htmlspecialchars($pageaddr).'</id>'."\n\n"; // Yes, I know I should use a real IRI (RFC3987), but the site URL will do. | 1002 | $feed.='<id>'.htmlspecialchars($pageaddr).'</id>'."\n\n"; // Yes, I know I should use a real IRI (RFC3987), but the site URL will do. |
1003 | $feed.=$entries; | 1003 | $feed.=$entries; |
1004 | $feed.='</feed>'; | 1004 | $feed.='</feed><!-- Cached version of '.pageUrl().' -->'; |
1005 | echo $feed; | 1005 | echo $feed; |
1006 | 1006 | ||
1007 | $cache->cache(ob_get_contents()); | 1007 | $cache->cache(ob_get_contents()); |
@@ -1078,7 +1078,7 @@ function showDailyRSS() | |||
1078 | echo '<description><![CDATA['.$html.']]></description>'."\n</item>\n\n"; | 1078 | echo '<description><![CDATA['.$html.']]></description>'."\n</item>\n\n"; |
1079 | 1079 | ||
1080 | } | 1080 | } |
1081 | echo '</channel></rss>'; | 1081 | echo '</channel></rss><!-- Cached version of '.pageUrl().' -->'; |
1082 | 1082 | ||
1083 | $cache->cache(ob_get_contents()); | 1083 | $cache->cache(ob_get_contents()); |
1084 | ob_end_flush(); | 1084 | ob_end_flush(); |