1
0
mirror of https://github.com/owncloud/bookmarks.git synced 2025-02-23 20:54:23 +01:00

Encode the URL

This commit is contained in:
Lukas Reschke 2013-01-15 10:03:00 +01:00
parent ab87255fd8
commit 555d473fb8

View File

@ -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 != '') {