summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2011-06-27 23:03:31 +0200
committerChristian Weiske <cweiske@cweiske.de>2011-06-27 23:03:31 +0200
commit90b6e65b1193b780c9c363fee3b1e92a5d0fba30 (patch)
treedfa326e2313172d151f4a1b07fd297d0f129c875 /data/templates
parent3d11286cbcc3cb35efe11f6e4a4ef5ac81620bda (diff)
downloadsemanticscuttle-90b6e65b1193b780c9c363fee3b1e92a5d0fba30.tar.gz
semanticscuttle-90b6e65b1193b780c9c363fee3b1e92a5d0fba30.tar.bz2
escape feed links properly and fix some bugs in the feed link parameters
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/default/bookmarks.tpl.php12
-rw-r--r--data/templates/default/top.inc.php2
2 files changed, 7 insertions, 7 deletions
diff --git a/data/templates/default/bookmarks.tpl.php b/data/templates/default/bookmarks.tpl.php
index 8753b7f..0ed9c1d 100644
--- a/data/templates/default/bookmarks.tpl.php
+++ b/data/templates/default/bookmarks.tpl.php
@@ -222,12 +222,12 @@ if ($currenttag!= '') {
$size = count($rsschannels);
for ($i = 0; $i < $size; $i++) {
$brss = '<a style="background:#FFFFFF"'
- . ' href="'. htmlspecialchars($rsschannels[$i][1]) . '"'
- . ' title="' . $rsschannels[$i][0] . '">'
- . '<img src="' . $theme->resource('images/rss.gif') . '"'
- . ' width="16" height="16"'
- . ' alt="' . $rsschannels[$i][0] .'"/>'
- . '</a>';
+ . ' href="'. htmlspecialchars($rsschannels[$i][1]) . '"'
+ . ' title="' . htmlspecialchars($rsschannels[$i][0]) . '">'
+ . '<img src="' . $theme->resource('images/rss.gif') . '"'
+ . ' width="16" height="16"'
+ . ' alt="' . htmlspecialchars($rsschannels[$i][0]) .'"/>'
+ . '</a>';
}
$pagesBanner = '<p class="paging">'. $bfirst .'<span> / </span>'. $bprev .'<span> / </span>'. $bnext .'<span> / </span>'. $blast .'<span> / </span>'. sprintf(T_('Page %d of %d'), $page, $totalpages) ." ". $brss ." </p>\n";
diff --git a/data/templates/default/top.inc.php b/data/templates/default/top.inc.php
index 9eed6ff..0f67a17 100644
--- a/data/templates/default/top.inc.php
+++ b/data/templates/default/top.inc.php
@@ -13,7 +13,7 @@ if (isset($rsschannels)) {
for ($i = 0; $i < $size; $i++) {
echo ' <link rel="alternate" type="application/rss+xml" title="'
. htmlspecialchars($rsschannels[$i][0]) . '"'
- . ' href="'. $rsschannels[$i][1] .'" />';
+ . ' href="'. htmlspecialchars($rsschannels[$i][1]) .'" />' . "\n";
}
}
?>