Skip to content

Commit b24c929

Browse files
committed
Encode the URI properly
Backport of eafa9b2
1 parent 28fdba2 commit b24c929

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/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)