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>2013-01-15 13:30:21 +0400
committerLukas Reschke <lukas@statuscode.ch>2013-01-15 13:30:21 +0400
commit3f37063ee8669c891d5bb1259caefdf56aa862d3 (patch)
tree13e4f8f988d634184cb3ddd4cdeac1296f4d3997
parentc56f52b2bfb72c813dd1ecc57e4bc49eb3eb8dfa (diff)
Encode the URI
-rw-r--r--apps/bookmarks/js/bookmarks.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/bookmarks/js/bookmarks.js b/apps/bookmarks/js/bookmarks.js
index 8d1a8aa62fd..4dc8967e54c 100644
--- a/apps/bookmarks/js/bookmarks.js
+++ b/apps/bookmarks/js/bookmarks.js
@@ -158,9 +158,9 @@ function updateBookmarksList(bookmark) {
'</span>&nbsp;' +
'</p>' +
'<p class="bookmark_title">'+
- '<a href="' + encodeEntities(bookmark.url) + '" target="_blank" class="bookmark_link">' + encodeEntities(bookmark.title) + '</a>' +
+ '<a href="' + encodeURI(bookmark.url) + '" target="_blank" class="bookmark_link">' + encodeEntities(bookmark.title) + '</a>' +
'</p>' +
- '<p class="bookmark_url"><a href="' + encodeEntities(bookmark.url) + '" target="_blank" class="bookmark_link">' + encodeEntities(bookmark.url) + '</a></p>' +
+ '<p class="bookmark_url"><a href="' + encodeURI(bookmark.url) + '" target="_blank" class="bookmark_link">' + encodeURI(bookmark.url) + '</a></p>' +
'</div>'
);
if(taglist != '') {
@@ -198,4 +198,4 @@ function encodeEntities(s){
function hasProtocol(url) {
var regexp = /(ftp|http|https|sftp)/;
return regexp.test(url);
-}
+} \ No newline at end of file