diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-22 02:15:03 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-22 02:15:03 +0000 |
commit | bf341b8a6164dad70ce289862bff828782c68213 (patch) | |
tree | cfb6f49637bb4f19fed89d0d4190c9f29020b876 /mod/bookmarks/views/default | |
parent | f2b91ade6ba9dfae5926015074d9e500484055b1 (diff) | |
download | elgg-bf341b8a6164dad70ce289862bff828782c68213.tar.gz elgg-bf341b8a6164dad70ce289862bff828782c68213.tar.bz2 |
Merged bookmarks XSS fixes in r7406 to trunk.
git-svn-id: http://code.elgg.org/elgg/trunk@7410 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/bookmarks/views/default')
-rw-r--r-- | mod/bookmarks/views/default/object/bookmarks.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mod/bookmarks/views/default/object/bookmarks.php b/mod/bookmarks/views/default/object/bookmarks.php index aa4874610..09d91a3c3 100644 --- a/mod/bookmarks/views/default/object/bookmarks.php +++ b/mod/bookmarks/views/default/object/bookmarks.php @@ -15,6 +15,10 @@ if (!$title = $vars['entity']->title) { $title = elgg_echo('bookmarks:no_title'); } +$a_tag_visit = filter_tags("<a href=\"{$address}\">" . elgg_echo('bookmarks:visit') . "</a>"); +$a_tag_title = filter_tags("<a href=\"{$address}\">$title</a>"); + + $parsed_url = parse_url($address); $faviconurl = $parsed_url['scheme'] . "://" . $parsed_url['host'] . "/favicon.ico"; @@ -76,7 +80,7 @@ if($vars['entity']->canEdit()){ $info .= "</div>"; -$info .= "<p class='entity_title'><a href=\"{$address}\" target=\"_blank\">{$title}</a></p>"; +$info .= "<p class='entity_title'>$a_tag_title</p>"; $info .= "<p class='entity_subtext'>Bookmarked by <a href=\"".elgg_get_site_url()."pg/bookmarks/{$owner->username}\">{$owner->name}</a> {$friendlytime} {$view_notes}</p>"; $tags = elgg_view('output/tags', array('tags' => $vars['entity']->tags)); @@ -88,4 +92,4 @@ if($view_notes != ''){ } //display -echo elgg_view_listing($icon, $info);
\ No newline at end of file +echo elgg_view_listing($icon, $info); |