Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2012-12-16 14:24:01 +0400
committerLukas Reschke <lukas@statuscode.ch>2012-12-16 14:24:01 +0400
commitb24c929cc0062a9ef65686203c92d11551a49591 (patch)
tree262aa435d06d3c02a8e203dc017150533a06babc
parent28fdba2a7863e4457963e64ce4117b1d3be9b45c (diff)
Encode the URI properly
Backport of eafa9b2
-rw-r--r--apps/bookmarks/js/bookmarks.js2
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;