diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2012-12-16 11:24:01 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2012-12-16 11:24:01 +0100 |
commit | b24c929cc0062a9ef65686203c92d11551a49591 (patch) | |
tree | 262aa435d06d3c02a8e203dc017150533a06babc | |
parent | 28fdba2a7863e4457963e64ce4117b1d3be9b45c (diff) | |
download | nextcloud-server-b24c929cc0062a9ef65686203c92d11551a49591.tar.gz nextcloud-server-b24c929cc0062a9ef65686203c92d11551a49591.zip |
Encode the URI properly
Backport of eafa9b2
-rw-r--r-- | apps/bookmarks/js/bookmarks.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/bookmarks/js/bookmarks.js b/apps/bookmarks/js/bookmarks.js index 7f3104e812f..8d1a8aa62fd 100644 --- a/apps/bookmarks/js/bookmarks.js +++ b/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; |