Skip to content
This repository was archived by the owner on Nov 14, 2018. It is now read-only.

Commit eafa9b2

Browse files
committed
Encode the URI properly
1 parent 1b9eb85 commit eafa9b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bookmarks/js/bookmarks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function updateBookmarksList(bookmark) {
141141
var taglist = '';
142142
for ( var i=0, len=tags.length; i<len; ++i ){
143143
if(tags[i] != '')
144-
taglist = taglist + '<a class="bookmark_tag" href="'+replaceQueryString( String(window.location), 'tag', encodeURIComponent(tags[i])) + '">' + tags[i] + '</a> ';
144+
taglist = taglist + '<a class="bookmark_tag" href="'+replaceQueryString(escapeHTML(String(window.location)), 'tag', encodeURIComponent(tags[i])) + '">' + tags[i] + '</a> ';
145145
}
146146
if(!hasProtocol(bookmark.url)) {
147147
bookmark.url = 'http://' + bookmark.url;

0 commit comments

Comments
 (0)