From 82f39d329214b2f6ac73b864b968bc1e9febebdf Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Thu, 21 Jun 2012 23:29:05 +0200 Subject: [PATCH] Contacts: Fix name and carddav-url encoding --- apps/contacts/js/contacts.js | 2 +- apps/contacts/templates/part.chooseaddressbook.rowfields.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/contacts/js/contacts.js b/apps/contacts/js/contacts.js index bd8535b4f6..6f5602c211 100644 --- a/apps/contacts/js/contacts.js +++ b/apps/contacts/js/contacts.js @@ -77,7 +77,7 @@ Contacts={ } }, showCardDAVUrl:function(username, bookname){ - $('#carddav_url').val(totalurl + '/' + username + '/' + bookname); + $('#carddav_url').val(totalurl + '/' + username + '/' + decodeURIComponent(bookname)); $('#carddav_url').show(); $('#carddav_url_close').show(); }, diff --git a/apps/contacts/templates/part.chooseaddressbook.rowfields.php b/apps/contacts/templates/part.chooseaddressbook.rowfields.php index 780920ea3c..2988bb44c5 100644 --- a/apps/contacts/templates/part.chooseaddressbook.rowfields.php +++ b/apps/contacts/templates/part.chooseaddressbook.rowfields.php @@ -2,10 +2,10 @@ " type="checkbox" onClick="Contacts.UI.Addressbooks.activation(this, )" > - + - ');" title="t("CardDav Link"); ?>" class="svg action globe"> + " class="svg action globe"> " title="t("Download"); ?>" class="svg action download">