make home page xml-valid

This commit is contained in:
Christian Weiske 2010-06-02 18:59:59 +02:00
parent 645c0a4396
commit f3461fcada
2 changed files with 6 additions and 4 deletions

View File

@ -199,7 +199,7 @@ if($currenttag!= '') {
$brss = ''; $brss = '';
$size = count($rsschannels); $size = count($rsschannels);
for ($i = 0; $i < $size; $i++) { for ($i = 0; $i < $size; $i++) {
$brss = '<a style="background:#FFFFFF" href="'. $rsschannels[$i][1] .'" title="'. $rsschannels[$i][0] .'"><img src="'. ROOT .'images/rss.gif" width="16" height="16" alt="'. $rsschannels[$i][0] .'" /></a>'; $brss = '<a style="background:#FFFFFF" href="'. $rsschannels[$i][1] .'" title="' . htmlspecialchars($rsschannels[$i][0]) . '"><img src="'. ROOT .'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"; $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";
@ -352,7 +352,7 @@ if($currenttag!= '') {
echo '<div '.$adminBgClass.' >';; echo '<div '.$adminBgClass.' >';;
echo '<div class="link"><a href="'. $address .'"'. $rel .' class="taggedlink" target="_blank">'. filter($row['bTitle']) ."</a>" . $adminStar . "</div>\n"; echo '<div class="link"><a href="'. htmlspecialchars($address) .'"'. $rel .' class="taggedlink" target="_blank">'. filter($row['bTitle']) ."</a>" . $adminStar . "</div>\n";
if ($row['bDescription'] == '') { if ($row['bDescription'] == '') {
$bkDescription = $GLOBALS['blankDescription']; $bkDescription = $GLOBALS['blankDescription'];
} else { } else {

View File

@ -18,8 +18,10 @@ if ($lastSearches && count($lastSearches) > 0) {
<?php <?php
foreach ($lastSearches as $row) { foreach ($lastSearches as $row) {
echo '<tr><td>'; echo '<tr><td>';
echo '<a href="'.createURL('search', $range.'/'.$row['shTerms']).'">'; echo '<a href="' . htmlspecialchars(
echo $row['shTerms']; createURL('search', $range.'/'.$row['shTerms'])
) . '">';
echo htmlspecialchars($row['shTerms']);
echo '</a>'; echo '</a>';
echo ' <span title="'.T_('Number of bookmarks for this query').'">('.$row['shNbResults'].')</span>'; echo ' <span title="'.T_('Number of bookmarks for this query').'">('.$row['shNbResults'].')</span>';
echo '</td></tr>'; echo '</td></tr>';