aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--index.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/index.php b/index.php
index 24fbe436..acc3fe49 100644
--- a/index.php
+++ b/index.php
@@ -939,7 +939,7 @@ function showRSS()
939 echo '<description><![CDATA['.nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description'])))).$descriptionlink.']]></description>'."\n</item>\n"; 939 echo '<description><![CDATA['.nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description'])))).$descriptionlink.']]></description>'."\n</item>\n";
940 $i++; 940 $i++;
941 } 941 }
942 echo '</channel></rss><!-- Cached version of '.pageUrl().' -->'; 942 echo '</channel></rss><!-- Cached version of '.htmlspecialchars(pageUrl()).' -->';
943 943
944 $cache->cache(ob_get_contents()); 944 $cache->cache(ob_get_contents());
945 ob_end_flush(); 945 ob_end_flush();
@@ -1024,7 +1024,7 @@ function showATOM()
1024 $feed.='<author><name>'.htmlspecialchars($pageaddr).'</name><uri>'.htmlspecialchars($pageaddr).'</uri></author>'; 1024 $feed.='<author><name>'.htmlspecialchars($pageaddr).'</name><uri>'.htmlspecialchars($pageaddr).'</uri></author>';
1025 $feed.='<id>'.htmlspecialchars($pageaddr).'</id>'."\n\n"; // Yes, I know I should use a real IRI (RFC3987), but the site URL will do. 1025 $feed.='<id>'.htmlspecialchars($pageaddr).'</id>'."\n\n"; // Yes, I know I should use a real IRI (RFC3987), but the site URL will do.
1026 $feed.=$entries; 1026 $feed.=$entries;
1027 $feed.='</feed><!-- Cached version of '.pageUrl().' -->'; 1027 $feed.='</feed><!-- Cached version of '.htmlspecialchars(pageUrl()).' -->';
1028 echo $feed; 1028 echo $feed;
1029 1029
1030 $cache->cache(ob_get_contents()); 1030 $cache->cache(ob_get_contents());
@@ -1101,7 +1101,7 @@ function showDailyRSS()
1101 echo '<description><![CDATA['.$html.']]></description>'."\n</item>\n\n"; 1101 echo '<description><![CDATA['.$html.']]></description>'."\n</item>\n\n";
1102 1102
1103 } 1103 }
1104 echo '</channel></rss><!-- Cached version of '.pageUrl().' -->'; 1104 echo '</channel></rss><!-- Cached version of '.htmlspecialchars(pageUrl()).' -->';
1105 1105
1106 $cache->cache(ob_get_contents()); 1106 $cache->cache(ob_get_contents());
1107 ob_end_flush(); 1107 ob_end_flush();
@@ -1744,11 +1744,11 @@ function importFile()
1744 } 1744 }
1745 $LINKSDB->savedb(); 1745 $LINKSDB->savedb();
1746 1746
1747 echo '<script language="JavaScript">alert("File '.$filename.' ('.$filesize.' bytes) was successfully processed: '.$import_count.' links imported.");document.location=\'?\';</script>'; 1747 echo '<script language="JavaScript">alert("File '.json_encode($filename).' ('.$filesize.' bytes) was successfully processed: '.$import_count.' links imported.");document.location=\'?\';</script>';
1748 } 1748 }
1749 else 1749 else
1750 { 1750 {
1751 echo '<script language="JavaScript">alert("File '.$filename.' ('.$filesize.' bytes) has an unknown file format. Nothing was imported.");document.location=\'?\';</script>'; 1751 echo '<script language="JavaScript">alert("File '.json_encode($filename).' ('.$filesize.' bytes) has an unknown file format. Nothing was imported.");document.location=\'?\';</script>';
1752 } 1752 }
1753} 1753}
1754 1754