aboutsummaryrefslogtreecommitdiff
path: root/data/templates/default/bookmarks.tpl.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2011-08-17 18:20:52 +0200
committerChristian Weiske <cweiske@cweiske.de>2011-08-17 18:20:52 +0200
commit196db46097a8e7bdce478c5c8559d3ecf0529114 (patch)
tree69076de98c0748d633caff694e04e2eb3529b06f /data/templates/default/bookmarks.tpl.php
parenta468938a5a87c6cd135afbc3bf122723c9305d4f (diff)
downloadsemanticscuttle-196db46097a8e7bdce478c5c8559d3ecf0529114.tar.gz
semanticscuttle-196db46097a8e7bdce478c5c8559d3ecf0529114.tar.bz2
Fix bug: URLs were escaped too often in bookmark list
Diffstat (limited to 'data/templates/default/bookmarks.tpl.php')
-rw-r--r--data/templates/default/bookmarks.tpl.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/data/templates/default/bookmarks.tpl.php b/data/templates/default/bookmarks.tpl.php
index 0ed9c1d..70fe788 100644
--- a/data/templates/default/bookmarks.tpl.php
+++ b/data/templates/default/bookmarks.tpl.php
@@ -107,7 +107,7 @@ if($userservice->isLoggedOn()) {
}
?>
-<?php if (count($bookmarks) > 0) { ?>
+<?php if (isset($bookmarks) && count($bookmarks) > 0) { ?>
<script type="text/javascript">
window.onload = playerLoad;
</script>
@@ -358,7 +358,7 @@ if ($currenttag!= '') {
$rel = ' rel="nofollow"';
}
- $address = filter($row['bAddress']);
+ $address = $row['bAddress'];
$oaddress = $address;
// Redirection option
if ($GLOBALS['useredir']) {
@@ -418,7 +418,7 @@ if ($currenttag!= '') {
}
echo ' <div class="description">'. nl2br($bkDescription) ."</div>\n";
- echo ' <div class="address">' . shortenString($oaddress) . "</div>\n";
+ echo ' <div class="address">' . htmlspecialchars(shortenString($oaddress)) . "</div>\n";
echo ' <div class="meta">'
. $cats . "\n"