Skip to content

Commit

Permalink
Encode the URI properly
Browse files Browse the repository at this point in the history
Backport of eafa9b2
  • Loading branch information
LukasReschke committed Dec 16, 2012
1 parent 28fdba2 commit b24c929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/bookmarks/js/bookmarks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b24c929

Please sign in to comment.