diff options
author | Christian Weiske <cweiske@cweiske.de> | 2011-08-17 18:20:52 +0200 |
---|---|---|
committer | Christian Weiske <cweiske@cweiske.de> | 2011-09-05 18:50:49 +0200 |
commit | 34600fe502c625217776c909903035d9ab937dea (patch) | |
tree | 4c7db8e6733da0cb665239e467ae0180a84a139d /data/templates | |
parent | 160ce01f7b709c38e9c3c081076a2d3e561ae2c5 (diff) | |
download | semanticscuttle-34600fe502c625217776c909903035d9ab937dea.tar.gz semanticscuttle-34600fe502c625217776c909903035d9ab937dea.tar.bz2 |
Fix bug: URLs were escaped too often in bookmark list
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/default/bookmarks.tpl.php | 6 |
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" |