From 53da201749f8f362323ef278bf338f1d9f7a925a Mon Sep 17 00:00:00 2001 From: Sebastien SAUVAGE Date: Fri, 29 Nov 2013 21:53:20 +0100 Subject: [PATCH] XSS flaw correction Closes issue https://github.com/sebsauvage/Shaarli/issues/134 --- index.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index 0465a4e5..884b2afd 100644 --- a/index.php +++ b/index.php @@ -942,7 +942,7 @@ function showRSS() echo ''."\n\n"; $i++; } - echo ''; + echo ''; $cache->cache(ob_get_contents()); ob_end_flush(); @@ -1027,7 +1027,7 @@ function showATOM() $feed.=''.htmlspecialchars($pageaddr).''.htmlspecialchars($pageaddr).''; $feed.=''.htmlspecialchars($pageaddr).''."\n\n"; // Yes, I know I should use a real IRI (RFC3987), but the site URL will do. $feed.=$entries; - $feed.=''; + $feed.=''; echo $feed; $cache->cache(ob_get_contents()); @@ -1104,7 +1104,7 @@ function showDailyRSS() echo ''."\n\n\n"; } - echo ''; + echo ''; $cache->cache(ob_get_contents()); ob_end_flush(); @@ -1747,11 +1747,11 @@ function importFile() } $LINKSDB->savedb(); - echo ''; + echo ''; } else { - echo ''; + echo ''; } } -- 2.41.0