Permalink
Browse files

Encode the URI properly

Backport of eafa9b2
  • Loading branch information...
1 parent 28fdba2 commit b24c929cc0062a9ef65686203c92d11551a49591 @LukasReschke LukasReschke committed Dec 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 apps/bookmarks/js/bookmarks.js
@@ -141,7 +141,7 @@ function updateBookmarksList(bookmark) {
var taglist = '';
for ( var i=0, len=tags.length; i<len; ++i ){
if(tags[i] != '')
- taglist = taglist + '<a class="bookmark_tag" href="'+replaceQueryString( String(window.location), 'tag', encodeURIComponent(tags[i])) + '">' + tags[i] + '</a> ';
+ taglist = taglist + '<a class="bookmark_tag" href="'+replaceQueryString(escapeHTML(String(window.location)), 'tag', encodeURIComponent(tags[i])) + '">' + tags[i] + '</a> ';
}
if(!hasProtocol(bookmark.url)) {
bookmark.url = 'http://' + bookmark.url;

0 comments on commit b24c929

Please sign in to comment.