[Pkg-owncloud-commits] [owncloud] 01/08: Encode the URI

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:09:21 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v4.0.11
in repository owncloud.

commit 3f37063ee8669c891d5bb1259caefdf56aa862d3
Author: Lukas Reschke <lukas at statuscode.ch>
Date:   Tue Jan 15 10:30:21 2013 +0100

    Encode the URI
---
 apps/bookmarks/js/bookmarks.js |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/apps/bookmarks/js/bookmarks.js b/apps/bookmarks/js/bookmarks.js
index 8d1a8aa..4dc8967 100644
--- a/apps/bookmarks/js/bookmarks.js
+++ b/apps/bookmarks/js/bookmarks.js
@@ -158,9 +158,9 @@ function updateBookmarksList(bookmark) {
 				'</span> ' +
 			'</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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list