From: Sebastien SAUVAGE Date: Fri, 29 Nov 2013 20:53:20 +0000 (+0100) Subject: XSS flaw correction X-Git-Tag: v0.0.42beta~5 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=53da201749f8f362323ef278bf338f1d9f7a925a;p=github%2Fshaarli%2FShaarli.git XSS flaw correction Closes issue https://github.com/sebsauvage/Shaarli/issues/134 --- 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 ''; } }